IR: Remove isa<UniquableMDNode>, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 19:10:14 +0000 (19:10 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 19:10:14 +0000 (19:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226488 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/AsmWriter.cpp

index c494d6ce3f0f725c1008f9ee8ad3c42f842a39e2..e2ea36d7d2a11e2698a8c4dd863455c3ee65aa02 100644 (file)
@@ -1309,7 +1309,7 @@ static void WriteMDNodeBodyInternal(raw_ostream &Out, const MDNode *Node,
                                     TypePrinting *TypePrinter,
                                     SlotTracker *Machine,
                                     const Module *Context) {
-  assert(isa<UniquableMDNode>(Node) && "Expected uniquable MDNode");
+  assert(!Node->isTemporary() && "Unexpected forward declaration");
 
   auto *Uniquable = cast<UniquableMDNode>(Node);
   if (Uniquable->isDistinct())