Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -24,7 +24,9 @@ protected CloneInfo(IRScope scope) {
}

public SimpleCloneInfo cloneForCloningClosure(IRClosure clonedClosure) {
SimpleCloneInfo clone = new SimpleCloneInfo(clonedClosure, true);
// If cloning for ensure block cloning we want to propagate that to child closure clones
boolean ensureClone = this instanceof SimpleCloneInfo && ((SimpleCloneInfo) this).isEnsureBlockCloneMode();
SimpleCloneInfo clone = new SimpleCloneInfo(clonedClosure, ensureClone);

for (Variable v: variableRenameMap.keySet()) {
clone.variableRenameMap.put(v, variableRenameMap.get(v));

0 comments on commit 8952362

Please sign in to comment.