Add if for StructSel
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
b231727a1f
commit
d2824accb8
|
|
@ -483,7 +483,7 @@ class ForceConvertVisitor final : public VNVisitor {
|
|||
}
|
||||
});
|
||||
// Replace write refs on RHS
|
||||
if (VN_IS(resetRdp->rhsp(), ArraySel)) {
|
||||
if (VN_IS(resetRdp->rhsp(), ArraySel) || VN_IS(resetRdp->rhsp(), StructSel)) {
|
||||
AstVarRef* const refp = VN_AS(AstNodeVarRef::varRefLValueRecurse(resetRdp->rhsp()), VarRef);
|
||||
AstVarScope* const vscp = refp->varScopep();
|
||||
AstNodeExpr* const origRhsp = resetRdp->rhsp();
|
||||
|
|
|
|||
Loading…
Reference in New Issue