Skip to content

Commit

Permalink
Fixlet. Use Map putAll rather than add each pair separately
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Feb 20, 2015
1 parent 3158e91 commit c183030
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -28,9 +28,7 @@ public SimpleCloneInfo cloneForCloningClosure(IRClosure clonedClosure) {
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));
}
clone.variableRenameMap.putAll(variableRenameMap);

return clone;
}
Expand Down

0 comments on commit c183030

Please sign in to comment.