summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-22 19:26:10 +0000
committerDan Gohman <gohman@apple.com>2008-08-22 19:26:10 +0000
commit04968da4604a146537f695aee1e88af4f9bc8097 (patch)
tree1a11e1570ce26879d3bf6e49eb13db96313fbb52 /llvm/lib/CodeGen/SelectionDAG
parent87ff7058e78a5fce93625a2adecd2a6398326a54 (diff)
downloadbcm5719-llvm-04968da4604a146537f695aee1e88af4f9bc8097.tar.gz
bcm5719-llvm-04968da4604a146537f695aee1e88af4f9bc8097.zip
Fix the InsertBranch call.
llvm-svn: 55192
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 74174519fb3..fb4de574a85 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -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;
OpenPOWER on IntegriCloud