Skip to content

Commit

Permalink
- Just close live range allowing variable to stay visible
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-sankaran committed Feb 14, 2024
1 parent 57f15cb commit af2b845
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean
codeStream.iconst_1();
codeStream.goto_(continueLabel);
falseLabel.place();
for (LocalVariableBinding patternVariableBinding : this.pattern.bindingsWhenTrue()) {
codeStream.removeVariable(patternVariableBinding);
for (LocalVariableBinding binding : this.pattern.bindingsWhenTrue()) {
binding.recordInitializationEndPC(codeStream.position);
}
codeStream.iconst_0();
continueLabel.place();
Expand Down

0 comments on commit af2b845

Please sign in to comment.