Skip to content

Commit

Permalink
Merge pull request #453 from yuleisui/master
Browse files Browse the repository at this point in the history
Add assertions when creating a clashed node (guard the DEBUG strategy in NodeIDAllocator)
  • Loading branch information
yuleisui authored May 29, 2021
2 parents 427666f + d2b6c4f commit 53ce786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/Graphs/PAG.h
Original file line number Diff line number Diff line change
Expand Up @@ -771,13 +771,13 @@ class PAG : public GenericGraph<PAGNode,PAGEdge>
/// Add a value (pointer) node
inline NodeID addValNode(const Value*, PAGNode *node, NodeID i)
{
assert(i<UINT_MAX && "exceeding the maximum node limits");
assert(hasGNode(i) == false && "This NodeID clashes here. Please check NodeIDAllocator. Switch Strategy::DEBUG to SEQ or DENSE");
return addNode(node,i);
}
/// Add a memory obj node
inline NodeID addObjNode(const Value*, PAGNode *node, NodeID i)
{
assert(i<UINT_MAX && "exceeding the maximum node limits");
assert(hasGNode(i) == false && "This NodeID clashes here. Please check NodeIDAllocator. Switch Strategy::DEBUG to SEQ or DENSE");
return addNode(node,i);
}
/// Add a unique return node for a procedure
Expand Down

0 comments on commit 53ce786

Please sign in to comment.