diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-01 19:31:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-01 19:31:30 +0000 |
commit | bcdda01210155d23ce4b29abd830a8767e0289c9 (patch) | |
tree | 1aee7d731449522d8f128ddfb68ff0bed4e383e0 /lib | |
parent | e0b531cc400aba4dd2c7dbf2694b71c3ea66dfd0 (diff) | |
download | external_llvm-bcdda01210155d23ce4b29abd830a8767e0289c9.zip external_llvm-bcdda01210155d23ce4b29abd830a8767e0289c9.tar.gz external_llvm-bcdda01210155d23ce4b29abd830a8767e0289c9.tar.bz2 |
Fix a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 427df28..42b0ec9 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -50,6 +50,7 @@ X86InstrInfo::reverseBranchCondition(MachineBasicBlock::iterator MI) const { assert(isBranch(Opcode) && "MachineInstr must be a branch"); unsigned ROpcode; switch (Opcode) { + default: assert(0 && "Cannot reverse unconditional branches!"); case X86::JB: ROpcode = X86::JAE; break; case X86::JAE: ROpcode = X86::JB; break; case X86::JE: ROpcode = X86::JNE; break; @@ -62,8 +63,6 @@ X86InstrInfo::reverseBranchCondition(MachineBasicBlock::iterator MI) const { case X86::JGE: ROpcode = X86::JL; break; case X86::JLE: ROpcode = X86::JG; break; case X86::JG: ROpcode = X86::JLE; break; - default: - assert(0 && "Cannot reverse unconditional branches!"); } MachineBasicBlock* MBB = MI->getParent(); MachineBasicBlock* TMBB = MI->getOperand(0).getMachineBasicBlock(); |