Fix range access to fields under classes that depend on parameter resolution (#4681)

Signed-off-by: Krzysztof Boronski <[email protected]>
This commit is contained in:
Krzysztof Boroński
2023-11-15 14:24:41 +01:00
committed by GitHub
parent 2dba76a7c2
commit cc982ec7fe
5 changed files with 82 additions and 15 deletions
-13
View File
@@ -181,19 +181,6 @@ class LinkResolveVisitor final : public VNVisitor {
nodep->scopeNamep(new AstScopeName{nodep->fileline(), false});
}
}
void visit(AstNodePreSel* nodep) override {
if (!nodep->attrp()) {
iterateChildren(nodep);
AstNode* const basefromp = AstArraySel::baseFromp(nodep, false);
if (VN_IS(basefromp, Replicate)) {
// From {...}[...] syntax in IEEE 2017
if (basefromp) UINFO(1, " Related node: " << basefromp << endl);
} else {
nodep->attrp(new AstAttrOf{nodep->fileline(), VAttrType::VAR_BASE,
basefromp->cloneTree(false)});
}
}
}
void visit(AstCaseItem* nodep) override {
// Move default caseItems to the bottom of the list