From bf68e80d0650c816f0ba8ed1a1f90c0f43701996 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 12 Jan 2015 20:56:33 +0000 Subject: IR: Prepare for a new UniquableMDNode subclass, NFC Add generic dispatch for the parts of `UniquableMDNode` that cast to `MDTuple`. This makes adding other subclasses (like PR21433's `MDLocation`) easier. llvm-svn: 225697 --- 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 c78b760..d47a0d3 100644 --- a/llvm/lib/IR/LLVMContextImpl.cpp +++ b/llvm/lib/IR/LLVMContextImpl.cpp @@ -142,7 +142,7 @@ LLVMContextImpl::~LLVMContextImpl() { I->dropAllReferences(); for (UniquableMDNode *I : DistinctMDNodes) - delete cast(I); + I->deleteAsSubclass(); for (MDTuple *I : MDTuples) delete I; -- cgit v1.1