diff options
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r-- | llvm/lib/IR/Metadata.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp index 9088a75156e..fa1f302568f 100644 --- a/llvm/lib/IR/Metadata.cpp +++ b/llvm/lib/IR/Metadata.cpp @@ -427,13 +427,6 @@ UniquableMDNode::UniquableMDNode(LLVMContext &C, unsigned ID, SubclassData32 = NumUnresolved; } -UniquableMDNode::~UniquableMDNode() { - if (isStoredDistinctInContext()) - getContext().pImpl->DistinctMDNodes.erase(this); - - dropAllReferences(); -} - void UniquableMDNode::resolve() { assert(!isResolved() && "Expected this to be unresolved"); @@ -481,11 +474,6 @@ void UniquableMDNode::resolveCycles() { } } -MDTuple::~MDTuple() { - if (!isStoredDistinctInContext()) - getContext().pImpl->MDTuples.erase(this); -} - void MDTuple::recalculateHash() { setHash(hash_combine_range(op_begin(), op_end())); #ifndef NDEBUG |