mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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
This commit is contained in:
parent
6104626b46
commit
a8c78a9e89
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user