projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68094bc
)
IR: Remove isa<UniquableMDNode>, NFC
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Mon, 19 Jan 2015 19:10:14 +0000
(19:10 +0000)
committer
Duncan 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
patch
|
blob
|
history
diff --git
a/lib/IR/AsmWriter.cpp
b/lib/IR/AsmWriter.cpp
index c494d6ce3f0f725c1008f9ee8ad3c42f842a39e2..e2ea36d7d2a11e2698a8c4dd863455c3ee65aa02 100644
(file)
--- 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<UniquableMDNode>(Node) && "Expected uniquable MDNode
");
+ assert(
!Node->isTemporary() && "Unexpected forward declaration
");
auto *Uniquable = cast<UniquableMDNode>(Node);
if (Uniquable->isDistinct())