summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index 358ea2ed11c..b13946e08fe 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -45,7 +45,7 @@ namespace {
/// instructions will be invoked for all instructions in the basic block.
///
void visitBasicBlock(BasicBlock &LLVM_BB) {
- BB = new MachineBasicBlock();
+ BB = new MachineBasicBlock(&LLVM_BB);
// FIXME: Use the auto-insert form when it's available
F->getBasicBlockList().push_back(BB);
}
OpenPOWER on IntegriCloud