Make sure to pass the LLVM basic block in
authorChris Lattner <sabre@nondot.org>
Wed, 30 Oct 2002 00:47:40 +0000 (00:47 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Oct 2002 00:47:40 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4433 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index 358ea2ed11c769684ed50717e035e13eb241634b..b13946e08febe905a3cb60fd5a5b7fb579d8cb70 100644 (file)
@@ -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);
     }
index 358ea2ed11c769684ed50717e035e13eb241634b..b13946e08febe905a3cb60fd5a5b7fb579d8cb70 100644 (file)
@@ -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);
     }