Skip to content

Commit

Permalink
Replace while loop with simpler do/while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
liblit committed Sep 22, 2024
1 parent 38c41b7 commit 0ffe89f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/main/java/com/ibm/wala/ssa/SSACFG.java
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,9 @@ public boolean hasNext() {
@Override
public SSAInstruction next() {
SSAInstruction i = instructions[start];
start++;
while (start <= end && instructions[start] == null) {
do {
start++;
}
} while (start <= end && instructions[start] == null);
return i;
}

Expand Down

0 comments on commit 0ffe89f

Please sign in to comment.