1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

add comment to explain my previous commit, as asked by Chris

llvm-svn: 62272
This commit is contained in:
Nuno Lopes 2009-01-15 18:40:57 +00:00
parent b1f92de36f
commit db7a9e291a

View File

@ -1671,6 +1671,8 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
} else { } else {
for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) { for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) {
Operand = I.getOperand(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) { if (Operand && Operand->getType() != TheType) {
PrintAllTypes = true; // We have differing types! Print them all! PrintAllTypes = true; // We have differing types! Print them all!
break; break;