forked from OSchip/llvm-project
parent
245920463d
commit
97f6ea9f34
|
@ -200,7 +200,7 @@ const Function *MDNode::getFunction() const {
|
|||
// destroy - Delete this node. Only when there are no uses.
|
||||
void MDNode::destroy() {
|
||||
setValueSubclassData(getSubclassDataFromValue() | DestroyFlag);
|
||||
// Placement delete, the free the memory.
|
||||
// Placement delete, then free the memory.
|
||||
this->~MDNode();
|
||||
free(this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue