We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5cca09 commit 44fe95eCopy full SHA for 44fe95e
1 file changed
zjit/src/hir.rs
@@ -1258,7 +1258,11 @@ impl Insn {
1258
Insn::CheckInterrupts { .. } => Effect::read_write(abstract_heaps::InterruptFlag, abstract_heaps::Control),
1259
Insn::InvokeProc { .. } => effects::Any,
1260
Insn::RefineType { .. } => effects::Empty,
1261
- Insn::HasType { .. } => effects::Empty,
+ Insn::HasType { expected, .. }
1262
+ => Effect::read_write(
1263
+ if expected.is_subtype(types::Immediate) { abstract_heaps::Empty } else { abstract_heaps::Memory },
1264
+ abstract_heaps::Control
1265
+ ),
1266
Insn::Entries { .. } => effects::Any,
1267
}
1268
0 commit comments