mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
Use MDNode::destroy(). Fixes a delete/free mismatch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da0bfcdaf9
commit
9dd3e92e1d
@ -263,10 +263,8 @@ void MDNode::deleteTemporary(MDNode *N) {
|
||||
"Temporary MDNode does not have NotUniquedBit set!");
|
||||
assert((N->getSubclassDataFromValue() & DestroyFlag) == 0 &&
|
||||
"Temporary MDNode has DestroyFlag set!");
|
||||
N->setValueSubclassData(N->getSubclassDataFromValue() |
|
||||
DestroyFlag);
|
||||
LeakDetector::removeGarbageObject(N);
|
||||
delete N;
|
||||
N->destroy();
|
||||
}
|
||||
|
||||
/// getOperand - Return specified operand.
|
||||
|
Loading…
Reference in New Issue
Block a user