[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 13 16:14:50 PDT 2004
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.145 -> 1.146
---
Log message:
Make Argument::print more resilient to non-verifiable IR
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.145 llvm/lib/VMCore/AsmWriter.cpp:1.146
--- llvm/lib/VMCore/AsmWriter.cpp:1.145 Sun Jul 4 06:50:43 2004
+++ llvm/lib/VMCore/AsmWriter.cpp Tue Jul 13 18:14:34 2004
@@ -1182,7 +1182,8 @@
}
void Argument::print(std::ostream &o) const {
- WriteAsOperand(o, this, true, true, getParent()->getParent());
+ WriteAsOperand(o, this, true, true,
+ getParent() ? getParent()->getParent() : 0);
}
// Value::dump - allow easy printing of Values from the debugger.
More information about the llvm-commits
mailing list