This commit is contained in:
Wilson Snyder 2023-05-21 12:24:00 -04:00
parent 6b393e9d7c
commit 65667356b6
1 changed files with 8 additions and 0 deletions

View File

@ -880,6 +880,14 @@ private:
checkNodeInfo(nodep);
iterateChildrenConst(nodep);
}
void visit(AstExprStmt* nodep) override {
if (jumpingOver(nodep)) return;
checkNodeInfo(nodep);
iterateAndNextConstNull(nodep->stmtsp());
if (!optimizable()) return;
iterateAndNextConstNull(nodep->resultp());
newValue(nodep, fetchValue(nodep->resultp()));
}
void visit(AstJumpBlock* nodep) override {
if (jumpingOver(nodep)) return;