summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/AsmWriter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-19 19:10:14 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-19 19:10:14 +0000
commit105acf7885a20e6573943246026c3dd30d8d1a78 (patch)
tree75866acf95a0055638656b4ee56d2461eb82db68 /llvm/lib/IR/AsmWriter.cpp
parent9b1c6d34e513c27c51e06cec024f106736aa4398 (diff)
downloadbcm5719-llvm-105acf7885a20e6573943246026c3dd30d8d1a78.tar.gz
bcm5719-llvm-105acf7885a20e6573943246026c3dd30d8d1a78.zip
IR: Remove isa<UniquableMDNode>, NFC
llvm-svn: 226488
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index c494d6ce3f0..e2ea36d7d2a 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/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<UniquableMDNode>(Node) && "Expected uniquable MDNode");
+ assert(!Node->isTemporary() && "Unexpected forward declaration");
auto *Uniquable = cast<UniquableMDNode>(Node);
if (Uniquable->isDistinct())
OpenPOWER on IntegriCloud