Skip to content

Commit

Permalink
Avoiding generating dead code - review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
lahodaj committed Nov 3, 2023
1 parent 30bf4f9 commit 263bd3d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ private static MethodHandle generateInnerClass(MethodHandles.Lookup caller, Obje
if (labels.length == 0) {
cb.constantInstruction(0)
.ireturn();
return ;
}
cb.iload(1);
Label dflt = cb.newLabel();
Expand Down

0 comments on commit 263bd3d

Please sign in to comment.