Skip to content

Commit 65efef5

Browse files
committed
Make type_of use union-find
Otherwise we might have stale types floating around
1 parent fc257fd commit 65efef5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/hir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ impl Function {
789789

790790
fn type_of(&self, insn: InsnId) -> Type {
791791
assert!(self.insns[insn.0].has_output());
792-
self.insn_types[insn.0]
792+
self.insn_types[self.union_find.find_const(insn).0]
793793
}
794794

795795
/// Check if the type of `insn` is a subtype of `ty`.

0 commit comments

Comments
 (0)