forked from OSchip/llvm-project
Verify that a non-uniqued non-temporary MDNode is not deleted via
MDNode::deleteTemporary. llvm-svn: 111853
This commit is contained in:
parent
41c2097058
commit
5d29673855
|
@ -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