aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContextImpl.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-01-22 21:43:01 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-01-22 21:43:01 +0000
commitcb36becbeb84826dcfff19243051d97c71d57211 (patch)
treedade12f2f84d38f07a4543d99755cb0521939bcf /llvm/lib/IR/LLVMContextImpl.cpp
parent8d536973a22ef1ad5c4ff1a120633cc028313f57 (diff)
downloadllvm-cb36becbeb84826dcfff19243051d97c71d57211.zip
llvm-cb36becbeb84826dcfff19243051d97c71d57211.tar.gz
llvm-cb36becbeb84826dcfff19243051d97c71d57211.tar.bz2
Remove dead leak detector parts that fell out of use in r224703.
llvm-svn: 226867
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp
index 880e1c1..3370bdb 100644
--- a/llvm/lib/IR/LLVMContextImpl.cpp
+++ b/llvm/lib/IR/LLVMContextImpl.cpp
@@ -97,8 +97,7 @@ LLVMContextImpl::~LLVMContextImpl() {
delete I;
#include "llvm/IR/Metadata.def"
- // Free the constants. This is important to do here to ensure that they are
- // freed before the LeakDetector is torn down.
+ // Free the constants.
std::for_each(ExprConstants.map_begin(), ExprConstants.map_end(),
DropFirst());
std::for_each(ArrayConstants.map_begin(), ArrayConstants.map_end(),