Skip to content

Commit

Permalink
Fix access of writable argument
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 14, 2023
1 parent 4796694 commit 4b73905
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/V3Width.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#include "V3String.h"
#include "V3Task.h"
#include "V3WidthCommit.h"
#include "V3LinkLValue.h"

// More code; this file was getting too large; see actions there
#define VERILATOR_V3WIDTH_CPP_
Expand Down Expand Up @@ -5687,6 +5688,7 @@ class WidthVisitor final : public VNVisitor {
AstNodeExpr* const newp = new AstResizeLValue{pinp->fileline(), pinp};
relinkHandle.relink(newp);
}
if (portp->isWritable()) V3LinkLValue::linkLValueSet(pinp);
if (!portp->basicp() || portp->basicp()->isOpaque()) {
checkClassAssign(nodep, "Function Argument", pinp, portDTypep);
userIterate(pinp, WidthVP{portDTypep, FINAL}.p());
Expand Down

0 comments on commit 4b73905

Please sign in to comment.