mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 18:58:51 +02:00
Fix instability in non-data type internal error
This commit is contained in:
+3
-1
@@ -2611,8 +2611,10 @@ 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{}});
|
||||
} else {
|
||||
oldp->replaceWith(newp);
|
||||
}
|
||||
oldp->replaceWith(newp);
|
||||
}
|
||||
|
||||
// Marks the current module to be revisited after the initial AST iteration
|
||||
|
||||
Reference in New Issue
Block a user