Skip to content

Commit

Permalink
Simplify filling an array
Browse files Browse the repository at this point in the history
  • Loading branch information
liblit committed Oct 8, 2024
1 parent 904a3a4 commit 72a11ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/main/java/com/ibm/wala/ssa/SSABuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1085,9 +1085,7 @@ public String[] getLocalNames(int index, int vn) {

public int[] allocateNewLocalsArray(int maxLocals) {
int[] result = new int[maxLocals];
for (int i = 0; i < maxLocals; i++) {
result[i] = OPTIMISTIC ? TOP : BOTTOM;
}
Arrays.fill(result, OPTIMISTIC ? TOP : BOTTOM);
return result;
}

Expand Down

0 comments on commit 72a11ff

Please sign in to comment.