diff options
author | Max Bernstein <[email protected]> | 2025-04-23 11:57:08 -0400 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-24 11:33:11 -0700 |
commit | c2677f4d0ba7ef3741020c754a498e4582cfe708 (patch) | |
tree | 8f337b4f38521f9990a6f8d7e01d5338b3273748 /zjit/src | |
parent | 4c1f29fd58dd9ad9ad84cf25ac5b034869e42779 (diff) |
Make type_of use union-find
Otherwise we might have stale types floating around
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13162
Diffstat (limited to 'zjit/src')
-rw-r--r-- | zjit/src/hir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index a0ecd14411..9758731460 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -789,7 +789,7 @@ impl Function { fn type_of(&self, insn: InsnId) -> Type { assert!(self.insns[insn.0].has_output()); - self.insn_types[insn.0] + self.insn_types[self.union_find.find_const(insn).0] } /// Check if the type of `insn` is a subtype of `ty`. |