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

fix refactoro

llvm-svn: 92349
This commit is contained in:
Chris Lattner 2009-12-31 08:23:09 +00:00
parent d8516bddb2
commit af22bc2328

View File

@ -2041,7 +2041,7 @@ void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
if (const Instruction *I = dyn_cast<Instruction>(this)) {
const Function *F = I->getParent() ? I->getParent()->getParent() : 0;
SlotTracker SlotTable(F);
AssemblyWriter W(OS, SlotTable, getModuleFromVal(F), AAW);
AssemblyWriter W(OS, SlotTable, getModuleFromVal(I), AAW);
W.printInstruction(*I);
} else if (const BasicBlock *BB = dyn_cast<BasicBlock>(this)) {
SlotTracker SlotTable(BB->getParent());