Support StructSel in unpacked array assignments (#5176)

This commit is contained in:
Geza Lore
2024-06-12 17:07:33 +01:00
committed by GitHub
parent d6e5703298
commit bc853e260b
3 changed files with 83 additions and 1 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ class SliceVisitor final : public VNVisitor {
leOffset};
} else if (VN_IS(nodep, ArraySel) || VN_IS(nodep, NodeVarRef) || VN_IS(nodep, NodeSel)
|| VN_IS(nodep, CMethodHard) || VN_IS(nodep, MemberSel)
|| VN_IS(nodep, ExprStmt)) {
|| VN_IS(nodep, ExprStmt) || VN_IS(nodep, StructSel)) {
UINFO(9, " cloneSel(" << elements << "," << elemIdx << ") " << nodep << endl);
const int leOffset = !arrayp->rangep()->ascending()
? arrayp->rangep()->elementsConst() - 1 - elemIdx