From 40d5ff97c1522369017a64fb05e892085b5588a3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 Oct 2002 00:47:40 +0000 Subject: [PATCH] Make sure to pass the LLVM basic block in llvm-svn: 4433 --- lib/Target/X86/InstSelectSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 358ea2ed11c..b13946e08fe 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/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); }