1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

Make sure to pass the LLVM basic block in

llvm-svn: 4433
This commit is contained in:
Chris Lattner 2002-10-30 00:47:40 +00:00
parent 55da33fe73
commit 40d5ff97c1

View File

@ -45,7 +45,7 @@ namespace {
/// instructions will be invoked for all instructions in the basic block. /// instructions will be invoked for all instructions in the basic block.
/// ///
void visitBasicBlock(BasicBlock &LLVM_BB) { void visitBasicBlock(BasicBlock &LLVM_BB) {
BB = new MachineBasicBlock(); BB = new MachineBasicBlock(&LLVM_BB);
// FIXME: Use the auto-insert form when it's available // FIXME: Use the auto-insert form when it's available
F->getBasicBlockList().push_back(BB); F->getBasicBlockList().push_back(BB);
} }