Skip to content

b_nil should noop if compared against truthy immediate (IRBuilder)#6817

Merged
enebo merged 1 commit intojruby:masterfrom
enebo:more_branch_simplification
Sep 9, 2021
Merged

b_nil should noop if compared against truthy immediate (IRBuilder)#6817
enebo merged 1 commit intojruby:masterfrom
enebo:more_branch_simplification

Conversation

@enebo
Copy link
Member

@enebo enebo commented Sep 8, 2021

IRBuilder.createBranch is missing a case if we know we have a literal
and we compare it against nil we definitely know it is not a valid
branch.

IRBuilder.createBranch is missing a case if we know we have a literal
and we compare it against nil we definitely know it is not a valid
branch.
@enebo enebo added this to the JRuby 9.3.0.0 milestone Sep 8, 2021
@enebo enebo merged commit e2ca9ec into jruby:master Sep 9, 2021
@enebo enebo deleted the more_branch_simplification branch March 4, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant