ZJIT: Mark SideExit as terminator

This commit is contained in:
Max Bernstein 2025-05-23 13:47:57 -04:00 committed by Takashi Kokubun
parent d23fe287b6
commit 15618b7707
Notes: git 2025-05-23 20:33:03 +00:00

View File

@ -422,7 +422,7 @@ impl Insn {
/// Return true if the instruction ends a basic block and false otherwise.
pub fn is_terminator(&self) -> bool {
match self {
Insn::Jump(_) | Insn::Return { .. } => true,
Insn::Jump(_) | Insn::Return { .. } | Insn::SideExit { .. } => true,
_ => false,
}
}