Fix emitting unbounded parameters (#6912).

Fixes #6912.
This commit is contained in:
Wilson Snyder
2026-01-12 22:56:23 -05:00
parent 8a24897c13
commit 09ca7ea8d1
3 changed files with 20 additions and 14 deletions
+5
View File
@@ -99,6 +99,11 @@ protected:
UASSERT_OBJ(!num.isFourState(), nodep, "4-state value in constant pool");
putns(nodep, num.emitC());
}
void visit(AstUnbounded* nodep) override {
// e.g. when emitting a public parameter's "$" value
// But Unbounded is only special during elaboration, so just use zero
putns(nodep, "0");
}
// Default
void visit(AstNode* nodep) override { // LCOV_EXCL_START