Skip to content

Commit

Permalink
Bugfix fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaybit0 committed Jan 29, 2025
1 parent 8fca8e6 commit ef49168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1675,9 +1675,7 @@ public static void canonicalExpandAfterFlattening(final List<RewriterRule> rules
.as(UUID.randomUUID().toString())
.withInstruction("sum")
.withOps(newIdxExpr);
System.out.println("Copying index list: " + newIdxExpr.toParsableString(ctx));
RewriterUtils.copyIndexList(newIdxExpr);
System.out.println("After copy: " + newIdxExpr.toParsableString(ctx));
newIdxExpr.refreshReturnType(ctx);
newSum.consolidate(ctx);
newArgList.getOperands().add(newSum);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,8 @@ public static void copyIndexList(RewriterStatement idxExprRoot) {
return null;
});

idxExprRoot.getOperands().set(1, out);
if (out != null)
idxExprRoot.getOperands().set(1, out);
}

public static void retargetIndexExpressions(RewriterStatement rootExpr, UUID oldIdxId, RewriterStatement newStatement) {
Expand Down

0 comments on commit ef49168

Please # to comment.