Skip to content

Commit

Permalink
Handle AstCMethodHard in V3LinkLValue
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 13, 2023
1 parent 7da45b3 commit 138f21e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/V3LinkLValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,13 @@ class LinkLValueVisitor final : public VNVisitor {
}
}
}
void visit(AstCMethodHard* nodep) override {
VL_RESTORER(m_setRefLvalue);
iterate(nodep->fromp());
m_setRefLvalue = VAccess::NOCHANGE;
// Arguments have access() assigned in V3Width
iterateAndNextNull(nodep->pinsp());
}

void visit(AstNode* nodep) override { iterateChildren(nodep); }

Expand Down

0 comments on commit 138f21e

Please sign in to comment.