From 2bc00f4a383549386c471db17cacb08cc9e53a0d Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 19 Jan 2015 23:13:14 +0000 Subject: IR: Merge UniquableMDNode back into MDNode, NFC As pointed out in r226501, the distinction between `MDNode` and `UniquableMDNode` is confusing. When we need subclasses of `MDNode` that don't use all its functionality it might make sense to break it apart again, but until then this makes the code clearer. llvm-svn: 226520 --- llvm/lib/IR/LLVMContextImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/LLVMContextImpl.cpp') diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp index 2fa6780..0c50a12 100644 --- a/llvm/lib/IR/LLVMContextImpl.cpp +++ b/llvm/lib/IR/LLVMContextImpl.cpp @@ -90,7 +90,7 @@ LLVMContextImpl::~LLVMContextImpl() { Pair.second->dropUse(); // Destroy MDNodes. - for (UniquableMDNode *I : DistinctMDNodes) + for (MDNode *I : DistinctMDNodes) I->deleteAsSubclass(); for (MDTuple *I : MDTuples) delete I; -- cgit v1.1