mirror of
https://github.com/verilator/verilator.git
synced 2026-09-04 00:30:34 +02:00
Add check for let misused in statement context (#5733).
This commit is contained in:
@@ -189,6 +189,9 @@ class LinkResolveVisitor final : public VNVisitor {
|
||||
return;
|
||||
}
|
||||
letp->user2(true);
|
||||
if (VN_IS(nodep->backp(), StmtExpr)) {
|
||||
nodep->v3error("Expected statement, not let substitution " << letp->prettyNameQ());
|
||||
}
|
||||
// letp->dumpTree("-let-let ");
|
||||
// nodep->dumpTree("-let-ref ");
|
||||
AstStmtExpr* const letStmtp = VN_AS(letp->stmtsp(), StmtExpr);
|
||||
|
||||
Reference in New Issue
Block a user