summaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 20:11:32 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 20:11:32 +0000
commit01965616973bb35c63a0bff1fc40036b9002f1c7 (patch)
treed99c8d61ba64292afbff80d1ba7c641674176c92 /lib/IR
parentae9e15f9145ea6da81c297ac01dd42d1330c52ad (diff)
IR: Push storeDistinctInContext() down to UniquableMDNode, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Metadata.cpp b/lib/IR/Metadata.cpp
index 282ea49aa41..8ff46735757 100644
--- a/lib/IR/Metadata.cpp
+++ b/lib/IR/Metadata.cpp
@@ -616,7 +616,7 @@ void MDNode::deleteTemporary(MDNode *N) {
delete cast<MDNodeFwdDecl>(N);
}
-void MDNode::storeDistinctInContext() {
+void UniquableMDNode::storeDistinctInContext() {
assert(!IsDistinctInContext && "Expected newly distinct metadata");
IsDistinctInContext = true;
auto *T = cast<MDTuple>(this);