projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a0f1b3
)
Remove an entry from ValueMap before removing elements.
author
Devang Patel
<dpatel@apple.com>
Thu, 27 Aug 2009 15:32:38 +0000
(15:32 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 27 Aug 2009 15:32:38 +0000
(15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80247
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Metadata.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Metadata.cpp
b/lib/VMCore/Metadata.cpp
index 208e1bcedccfb9a6e0b2f75e52f5fbb3cb7161e7..60ec1c5c6cab437dc51250e0911036d8ac198b05 100644
(file)
--- a/
lib/VMCore/Metadata.cpp
+++ b/
lib/VMCore/Metadata.cpp
@@
-101,8
+101,8
@@
static std::vector<Value*> getValType(MDNode *N) {
}
MDNode::~MDNode() {
- dropAllReferences();
getType()->getContext().pImpl->MDNodes.remove(this);
+ dropAllReferences();
}
//===----------------------------------------------------------------------===//