mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
Remove an entry from ValueMap before removing elements.
llvm-svn: 80247
This commit is contained in:
parent
e17a92c545
commit
0ac8889288
@ -101,8 +101,8 @@ static std::vector<Value*> getValType(MDNode *N) {
|
||||
}
|
||||
|
||||
MDNode::~MDNode() {
|
||||
dropAllReferences();
|
||||
getType()->getContext().pImpl->MDNodes.remove(this);
|
||||
dropAllReferences();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user