mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix removing extra width warnings after another error
This commit is contained in:
+1
-1
@@ -3590,7 +3590,7 @@ class LinkDotResolveVisitor final : public VNVisitor {
|
||||
if (oldp->wouldBreak(newp)) {
|
||||
newp->v3error(
|
||||
"Data type used where a non-data type is expected: " << newp->prettyNameQ());
|
||||
oldp->replaceWith(new AstConst{newp->fileline(), AstConst::BitFalse{}});
|
||||
oldp->replaceWith(new AstConst{newp->fileline(), AstConst::BitFalseErroring{}});
|
||||
} else {
|
||||
oldp->replaceWith(newp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user