forked from github/verilator
Internals: assert not double adding. No functional change intended.
This commit is contained in:
parent
5d3482734a
commit
f7a5883205
@ -394,6 +394,7 @@ void AstNode::setOp4p(AstNode* newp) {
|
|||||||
|
|
||||||
void AstNode::addOp1p(AstNode* newp) {
|
void AstNode::addOp1p(AstNode* newp) {
|
||||||
UASSERT(newp, "Null item passed to addOp1p");
|
UASSERT(newp, "Null item passed to addOp1p");
|
||||||
|
UDEBUGONLY(UASSERT_OBJ(!newp->m_backp, newp, "Adding already linked node"););
|
||||||
if (!m_op1p) {
|
if (!m_op1p) {
|
||||||
op1p(newp);
|
op1p(newp);
|
||||||
} else {
|
} else {
|
||||||
@ -403,6 +404,7 @@ void AstNode::addOp1p(AstNode* newp) {
|
|||||||
|
|
||||||
void AstNode::addOp2p(AstNode* newp) {
|
void AstNode::addOp2p(AstNode* newp) {
|
||||||
UASSERT(newp, "Null item passed to addOp2p");
|
UASSERT(newp, "Null item passed to addOp2p");
|
||||||
|
UDEBUGONLY(UASSERT_OBJ(!newp->m_backp, newp, "Adding already linked node"););
|
||||||
if (!m_op2p) {
|
if (!m_op2p) {
|
||||||
op2p(newp);
|
op2p(newp);
|
||||||
} else {
|
} else {
|
||||||
@ -412,6 +414,7 @@ void AstNode::addOp2p(AstNode* newp) {
|
|||||||
|
|
||||||
void AstNode::addOp3p(AstNode* newp) {
|
void AstNode::addOp3p(AstNode* newp) {
|
||||||
UASSERT(newp, "Null item passed to addOp3p");
|
UASSERT(newp, "Null item passed to addOp3p");
|
||||||
|
UDEBUGONLY(UASSERT_OBJ(!newp->m_backp, newp, "Adding already linked node"););
|
||||||
if (!m_op3p) {
|
if (!m_op3p) {
|
||||||
op3p(newp);
|
op3p(newp);
|
||||||
} else {
|
} else {
|
||||||
@ -421,6 +424,7 @@ void AstNode::addOp3p(AstNode* newp) {
|
|||||||
|
|
||||||
void AstNode::addOp4p(AstNode* newp) {
|
void AstNode::addOp4p(AstNode* newp) {
|
||||||
UASSERT(newp, "Null item passed to addOp4p");
|
UASSERT(newp, "Null item passed to addOp4p");
|
||||||
|
UDEBUGONLY(UASSERT_OBJ(!newp->m_backp, newp, "Adding already linked node"););
|
||||||
if (!m_op4p) {
|
if (!m_op4p) {
|
||||||
op4p(newp);
|
op4p(newp);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user