[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 29 18:48:01 PST 2002


Changes in directory llvm/lib/Target/X86:

InstSelectSimple.cpp updated: 1.8 -> 1.9

---
Log message:

Make sure to pass the LLVM basic block in


---
Diffs of the changes:

Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.8 llvm/lib/Target/X86/InstSelectSimple.cpp:1.9
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.8	Tue Oct 29 17:40:58 2002
+++ llvm/lib/Target/X86/InstSelectSimple.cpp	Tue Oct 29 18:47:40 2002
@@ -45,7 +45,7 @@
     /// 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);
     }





More information about the llvm-commits mailing list