aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2013-06-06 19:48:16 +0300
committerPekka Enberg <penberg@kernel.org>2013-06-06 19:48:16 +0300
commitf25c20ab52ef98f784421298c99c0a211b50ad43 (patch)
tree9141ab7d165ed7ca3cd7673ced75a09ffe3d7d65
parent0e5cb9d1b86b2287582df143f63a0ae374360116 (diff)
downloadjato-f25c20ab52ef98f784421298c99c0a211b50ad43.tar.gz
x86: Add default case to ssa_chg_jmp_direction()
Spotted by GCC: arch/x86/instruction.c: In function ‘ssa_chg_jmp_direction’: arch/x86/instruction.c:683:2: warning: switch missing default case [-Wswitch-default] Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--arch/x86/instruction.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/instruction.c b/arch/x86/instruction.c
index 871ab2a2..709ab258 100644
--- a/arch/x86/instruction.c
+++ b/arch/x86/instruction.c
@@ -721,6 +721,8 @@ void ssa_chg_jmp_direction(struct insn *insn, struct basic_block *after_bb,
if (insn->operand.branch_target == bb)
insn->operand.branch_target = new_bb;
break;
+ default:
+ break;
}
}