From: Devang Patel Date: Thu, 11 Feb 2010 20:58:56 +0000 (+0000) Subject: revert 95903. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cb419d3c6f613360740594ff7bf9b8f556e79d4b;p=oota-llvm.git revert 95903. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95918 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index 4eb07224045..f7f4860614a 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) {