Fix ENUMVALUE error when overriding enum param from CLI using -G/-pvalue

This commit is contained in:
Geza Lore
2025-10-30 12:04:12 +00:00
parent 2a0b331ee3
commit a4c5d2e29c
9 changed files with 17456 additions and 17382 deletions
+2
View File
@@ -1627,6 +1627,8 @@ class LinkDotFindVisitor final : public VNVisitor {
UINFO(9, " with " << valuep);
if (nodep->valuep()) pushDeletep(nodep->valuep()->unlinkFrBack());
nodep->valuep(valuep);
// Do not warn ENUMVALUE when overriding an enum param from the cli.
nodep->fileline()->warnOff(V3ErrorCode::ENUMVALUE, true);
}
}
}