From f3d08ef59af271ee8fae2f37708cfb67c821442a Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Wed, 6 Apr 2016 17:56:05 +0000 Subject: [PATCH] IR: Stop explicitly clearing the MDStringCache The MDStringCache doesn't need to be explicitly cleared before destruction. The destructor handles it at least as efficiently. llvm-svn: 265576 --- llvm/lib/IR/LLVMContextImpl.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp index 5239b4f..9fe1893 100644 --- a/llvm/lib/IR/LLVMContextImpl.cpp +++ b/llvm/lib/IR/LLVMContextImpl.cpp @@ -158,9 +158,6 @@ LLVMContextImpl::~LLVMContextImpl() { // Destroy ValuesAsMetadata. for (auto &Pair : ValuesAsMetadata) delete Pair.second; - - // Destroy MDStrings. - MDStringCache.clear(); } void LLVMContextImpl::dropTriviallyDeadConstantArrays() { -- 2.7.4