Fix printing of instructions with null operands.
llvm-svn: 79243
This commit is contained in:
parent
d0cc3f31c0
commit
d04f9bf01a
|
@ -689,7 +689,7 @@ void SlotTracker::processFunction() {
|
|||
!I->hasName())
|
||||
CreateFunctionSlot(I);
|
||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
|
||||
if (MDNode *N = dyn_cast<MDNode>(I->getOperand(i)))
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(I->getOperand(i)))
|
||||
CreateMetadataSlot(N);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue