Internals: Spacing; fix assertion

This commit is contained in:
Wilson Snyder
2019-01-05 05:46:37 -05:00
parent 9b0f2cce86
commit 3505486ec8
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -761,7 +761,7 @@ void AstNode::addBeforeStmt(AstNode* newp, AstNode*) {
this->backp()->addBeforeStmt(newp, this);
}
void AstNode::addNextStmt(AstNode* newp, AstNode*) {
if (!backp()) newp->v3fatalSrc("Can't find current statement to addBeforeStmt");
if (!backp()) newp->v3fatalSrc("Can't find current statement to addNextStmt");
// Look up; virtual call will find where to put it
this->backp()->addNextStmt(newp, this);
}