[llvm-commits] [llvm] r80247 - /llvm/trunk/lib/VMCore/Metadata.cpp
Devang Patel
dpatel at apple.com
Thu Aug 27 08:32:39 PDT 2009
Author: dpatel
Date: Thu Aug 27 10:32:38 2009
New Revision: 80247
URL: http://llvm.org/viewvc/llvm-project?rev=80247&view=rev
Log:
Remove an entry from ValueMap before removing elements.
Modified:
llvm/trunk/lib/VMCore/Metadata.cpp
Modified: llvm/trunk/lib/VMCore/Metadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Metadata.cpp?rev=80247&r1=80246&r2=80247&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Metadata.cpp (original)
+++ llvm/trunk/lib/VMCore/Metadata.cpp Thu Aug 27 10:32:38 2009
@@ -101,8 +101,8 @@
}
MDNode::~MDNode() {
- dropAllReferences();
getType()->getContext().pImpl->MDNodes.remove(this);
+ dropAllReferences();
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list