Fix interface data type consistency (#6965) (#7302)

This commit is contained in:
em2machine
2026-03-21 10:34:36 -04:00
committed by GitHub
parent 4dae9ed4e9
commit 05f640459e
5 changed files with 20 additions and 17 deletions
+2 -1
View File
@@ -878,10 +878,11 @@ class ParamProcessor final {
if (AstTypedef* const newTdp = V3LinkDotIfaceCapture::findTypedefInModule(
correctModp, refp->typedefp()->name())) {
refp->typedefp(newTdp);
if (newTdp->subDTypep()) refp->refDTypep(newTdp->subDTypep());
fixed = true;
}
}
if (refp->refDTypep()) {
if (!fixed && refp->refDTypep()) {
if (AstNodeDType* const newDtp = V3LinkDotIfaceCapture::findDTypeInModule(
correctModp, refp->refDTypep()->name(), refp->refDTypep()->type())) {
refp->refDTypep(newDtp);