diff options
| author | Max Bernstein <max.bernstein@shopify.com> | 2025-05-23 13:47:57 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-05-23 13:32:49 -0700 |
| commit | 15618b7707aefe9a601771d2aca986392d1fb775 (patch) | |
| tree | 63e3c504e3bd505cbfd2a6fe00fc722d493fdefa | |
| parent | d23fe287b647d342dbb26b5b714992823b068fe4 (diff) | |
ZJIT: Mark SideExit as terminator
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13430
| -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 ffd60c493e..9365e9ae9e 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -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, } } |
