aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContextImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.cpp2
1 files changed, 1 insertions, 1 deletions
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<MDTuple>(I);
+ I->deleteAsSubclass();
for (MDTuple *I : MDTuples)
delete I;