From a0ed724a444208a2296eead4c3590057794ed85c Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 19 Jan 2015 19:10:14 +0000 Subject: [PATCH] IR: Remove isa, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226488 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.34.1