diff options
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 1865402a65f..44095ca4e85 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -698,7 +698,7 @@ void SlotTracker::processFunction() { if (MDNode *N = dyn_cast_or_null<MDNode>(I->getOperand(i))) { // Create a metadata slot only if N contains no instructions. for (unsigned n = 0, e = N->getNumElements(); n != e; ++n) - if (isa<Instruction>(N->getElement(n))) + if (N->getElement(n) && isa<Instruction>(N->getElement(n))) continue; CreateMetadataSlot(N); } |