diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2009-01-14 17:51:41 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2009-01-14 17:51:41 +0000 |
commit | a8c78a9e89afcca4f003c55bcdbd41a23ecd5c8d (patch) | |
tree | be121c5f5387c2a15a04eee039fb5f71a434365e | |
parent | 6104626b467d22518f16c74cd67cba89168f65d4 (diff) | |
download | external_llvm-a8c78a9e89afcca4f003c55bcdbd41a23ecd5c8d.zip external_llvm-a8c78a9e89afcca4f003c55bcdbd41a23ecd5c8d.tar.gz external_llvm-a8c78a9e89afcca4f003c55bcdbd41a23ecd5c8d.tar.bz2 |
fix crash in the case when some arg is null
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62236 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index cd4c692..8139e82 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1671,7 +1671,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { } else { for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) { Operand = I.getOperand(i); - if (Operand->getType() != TheType) { + if (Operand && Operand->getType() != TheType) { PrintAllTypes = true; // We have differing types! Print them all! break; } |