Fix printing of instructions with null operands.

llvm-svn: 79243
This commit is contained in:
Dan Gohman 2009-08-17 15:28:08 +00:00
parent d0cc3f31c0
commit d04f9bf01a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}