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:
c478e52
)
add comment to explain my previous commit, as asked by Chris
author
Nuno Lopes
<nunoplopes@sapo.pt>
Thu, 15 Jan 2009 18:40:57 +0000
(18:40 +0000)
committer
Nuno Lopes
<nunoplopes@sapo.pt>
Thu, 15 Jan 2009 18:40:57 +0000
(18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62272
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 8139e822ee6ee1dc52c098fe8e6f4b8d19e175f6..bdc50b6c6971c4c5e45b83b725873884b33d82fa 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-1671,6
+1671,8
@@
void AssemblyWriter::printInstruction(const Instruction &I) {
} else {
for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) {
Operand = I.getOperand(i);
+ // note that Operand shouldn't be null, but the test helps make dump()
+ // more tolerant of malformed IR
if (Operand && Operand->getType() != TheType) {
PrintAllTypes = true; // We have differing types! Print them all!
break;