aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/AsmWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index c60e5ee..bd6c09e 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -1182,7 +1182,8 @@ void Type::print(std::ostream &o) const {
}
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.