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 528781d9ff
commit e3ceb17d54
1 changed files with 1 additions and 1 deletions

View 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);
}