Fix instability in non-data type internal error
This commit is contained in:
parent
916d473eff
commit
f9f70383fa
|
@ -2611,8 +2611,10 @@ class LinkDotResolveVisitor final : public VNVisitor {
|
||||||
if (oldp->wouldBreak(newp)) {
|
if (oldp->wouldBreak(newp)) {
|
||||||
newp->v3error(
|
newp->v3error(
|
||||||
"Data type used where a non-data type is expected: " << newp->prettyNameQ());
|
"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
|
// Marks the current module to be revisited after the initial AST iteration
|
||||||
|
|
Loading…
Reference in New Issue