From: Duncan P. N. Exon Smith Date: Mon, 19 Jan 2015 19:10:14 +0000 (+0000) Subject: IR: Remove isa, NFC X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a0ed724a444208a2296eead4c3590057794ed85c;p=oota-llvm.git IR: Remove isa, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226488 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index c494d6ce3f0..e2ea36d7d2a 100644 --- a/lib/IR/AsmWriter.cpp +++ b/lib/IR/AsmWriter.cpp @@ -1309,7 +1309,7 @@ static void WriteMDNodeBodyInternal(raw_ostream &Out, const MDNode *Node, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context) { - assert(isa(Node) && "Expected uniquable MDNode"); + assert(!Node->isTemporary() && "Unexpected forward declaration"); auto *Uniquable = cast(Node); if (Uniquable->isDistinct())