Internals: Make AstAlwaysPost an AstNodeProcedure. (#2959)

This seems to belong there, eliminates some code duplication in V3Clock,
and also enables splitting AstAlwaysPost statements into different
functions in V3Order, but should otherwise have little effect.
This commit is contained in:
Geza Lore
2021-05-15 10:56:28 -04:00
committed by GitHub
parent 88fed4bc2f
commit 5e95cc9280
3 changed files with 12 additions and 29 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ private:
new AstVarRef(nodep->fileline(), setvscp, VAccess::READ),
nullptr, nullptr);
UINFO(9, " Created " << postLogicp << endl);
finalp->addBodysp(postLogicp);
finalp->addStmtp(postLogicp);
finalp->user3p(setvscp); // Remember IF's vset variable
finalp->user4p(postLogicp); // and the associated IF, as we may be able to reuse it
}