mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Verify that a non-uniqued non-temporary MDNode is not deleted via
MDNode::deleteTemporary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8300712c1e
commit
97cfa7dc0a
@ -258,7 +258,9 @@ MDNode *MDNode::getTemporary(LLVMContext &Context, Value *const *Vals,
|
||||
void MDNode::deleteTemporary(MDNode *N) {
|
||||
assert(N->use_empty() && "Temporary MDNode has uses!");
|
||||
assert(!N->getContext().pImpl->MDNodeSet.RemoveNode(N) &&
|
||||
"Deleting a non-temporary node!");
|
||||
"Deleting a non-temporary uniqued node!");
|
||||
assert(!N->getContext().pImpl->NonUniquedMDNodes.erase(N) &&
|
||||
"Deleting a non-temporary non-uniqued node!");
|
||||
assert((N->getSubclassDataFromValue() & NotUniquedBit) &&
|
||||
"Temporary MDNode does not have NotUniquedBit set!");
|
||||
assert((N->getSubclassDataFromValue() & DestroyFlag) == 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user