Skip to content

Commit 613949a

Browse files
tekknolaginirvdrum
andauthored
ZJIT: Call make_equal_to when folding GuardBitEquals (ruby#17308)
We need to actually link it up in the union-find instead of dropping it on the floor. Co-authored-by: Kevin Menard <kevin@nirvdrum.com>
1 parent c4540eb commit 613949a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zjit/src/hir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5218,6 +5218,7 @@ impl Function {
52185218
Insn::GuardBitEquals { val, expected, .. } => {
52195219
let recv_type = self.type_of(val);
52205220
if recv_type.has_value(expected) {
5221+
self.make_equal_to(insn_id, val);
52215222
continue;
52225223
} else {
52235224
insn_id

0 commit comments

Comments
 (0)