Fix a warning
authorChris Lattner <sabre@nondot.org>
Sun, 1 Aug 2004 19:31:30 +0000 (19:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Aug 2004 19:31:30 +0000 (19:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15409 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.cpp

index 427df28d5dc0a9568d4ef81413f9d1c90f0a3853..42b0ec95a87647b51320724c5f25bc8e85449d17 100644 (file)
@@ -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();