Fix the InsertBranch call.
authorDan Gohman <gohman@apple.com>
Fri, 22 Aug 2008 19:26:10 +0000 (19:26 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 22 Aug 2008 19:26:10 +0000 (19:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55192 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index 74174519fb36f5e3dcbf253cd6003defe4e1df33..fb4de574a85f7db785ac05d5b21b1fef0d5aa2d6 100644 (file)
@@ -207,8 +207,7 @@ FastISel::SelectInstructions(BasicBlock::iterator Begin,
           // The unconditional fall-through case, which needs no instructions.
         } else {
           // The unconditional branch case.
-          const SmallVector<MachineOperand, 0> NoCond(0);
-          TII.InsertBranch(*MBB, MSucc, NULL, NoCond);
+          TII.InsertBranch(*MBB, MSucc, NULL, SmallVector<MachineOperand, 0>());
         }
         MBB->addSuccessor(MSucc);
         break;