summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index eccf3895761..64f735c48e6 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -97,6 +97,6 @@ void MachineBasicBlock::print(std::ostream &OS) const
OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
for (const_iterator I = begin(); I != end(); ++I) {
OS << "\t";
- I->print(OS, MachineFunction::get(LBB->getParent()).getTarget());
+ I->print(OS, getParent()->getTarget());
}
}
OpenPOWER on IntegriCloud