diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-13 23:14:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-13 23:14:34 +0000 |
commit | 144d9baf5e5665ab1b0e815402d92ee615034b01 (patch) | |
tree | f497d75740b24576cc4da1ae0ba1757b9a186b29 /lib/VMCore | |
parent | b4091e548e0e6057cd3ea64216bf8068b21e8216 (diff) | |
download | external_llvm-144d9baf5e5665ab1b0e815402d92ee615034b01.zip external_llvm-144d9baf5e5665ab1b0e815402d92ee615034b01.tar.gz external_llvm-144d9baf5e5665ab1b0e815402d92ee615034b01.tar.bz2 |
Make Argument::print more resilient to non-verifiable IR
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
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. |