forked from OSchip/llvm-project
add comment to explain my previous commit, as asked by Chris
llvm-svn: 62272
This commit is contained in:
parent
5aa1922614
commit
04fe2f0a95
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue