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 23, 2024
1 parent d843bb8 commit 999faf5
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 999faf5

Please sign in to comment.