diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-11 20:58:56 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-11 20:58:56 +0000 |
commit | cb419d3c6f613360740594ff7bf9b8f556e79d4b (patch) | |
tree | 8ff6c4fbce1e4443a6105d20ef4bcfaa0699ecd5 /lib | |
parent | a875fd0fdbf5fd111e97fa909e13ad48936856d1 (diff) | |
download | external_llvm-cb419d3c6f613360740594ff7bf9b8f556e79d4b.zip external_llvm-cb419d3c6f613360740594ff7bf9b8f556e79d4b.tar.gz external_llvm-cb419d3c6f613360740594ff7bf9b8f556e79d4b.tar.bz2 |
revert 95903.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index 4eb0722..f7f4860 100644 --- a/lib/VMCore/LLVMContextImpl.h +++ b/lib/VMCore/LLVMContextImpl.h @@ -224,10 +224,7 @@ public: if (I->second->use_empty()) delete I->second; } - while (!MDNodeSet.empty()) { - MDNode *N = &(*MDNodeSet.begin()); - N->destroy(); - } + MDNodeSet.clear(); AlwaysOpaqueTy->dropRef(); for (OpaqueTypesTy::iterator I = OpaqueTypes.begin(), E = OpaqueTypes.end(); I != E; ++I) { |