mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix ENUMVALUE error when overriding enum param from CLI using -G/-pvalue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user