Remove an entry from ValueMap before removing elements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-08-27 15:32:38 +00:00
parent 3a0f1b3ed0
commit 8cf476be5b

View File

@ -101,8 +101,8 @@ static std::vector<Value*> getValType(MDNode *N) {
}
MDNode::~MDNode() {
dropAllReferences();
getType()->getContext().pImpl->MDNodes.remove(this);
dropAllReferences();
}
//===----------------------------------------------------------------------===//