projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4091e5
)
Make Argument::print more resilient to non-verifiable IR
author
Chris Lattner
<sabre@nondot.org>
Tue, 13 Jul 2004 23:14:34 +0000
(23:14 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 13 Jul 2004 23:14:34 +0000
(23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14801
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index c60e5eeb0b9bde5754747507b573f97a7badf6c9..bd6c09e0e514bde5d8ab361166f576fcb1171b20 100644
(file)
--- 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.