mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
3a0f1b3ed0
commit
8cf476be5b
@ -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