[llvm-commits] [llvm] r95918 - /llvm/trunk/lib/VMCore/LLVMContextImpl.h

Devang Patel dpatel at apple.com
Thu Feb 11 12:58:56 PST 2010


Author: dpatel
Date: Thu Feb 11 14:58:56 2010
New Revision: 95918

URL: http://llvm.org/viewvc/llvm-project?rev=95918&view=rev
Log:
revert 95903.

Modified:
    llvm/trunk/lib/VMCore/LLVMContextImpl.h

Modified: llvm/trunk/lib/VMCore/LLVMContextImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/LLVMContextImpl.h?rev=95918&r1=95917&r2=95918&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/LLVMContextImpl.h (original)
+++ llvm/trunk/lib/VMCore/LLVMContextImpl.h Thu Feb 11 14:58:56 2010
@@ -224,10 +224,7 @@
       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) {





More information about the llvm-commits mailing list