From 5291e49313ff4f50e7397be5bac5ad21331eed22 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 23 May 2025 19:16:49 +0800 Subject: [PATCH] fix(jit): should not be unreachable --- Cargo.toml | 1 - src/jit/helpers.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 586ff2c..1738066 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,6 @@ inherits = "release" [profile.release] lto = true -codegen-units = 1 strip = true [dependencies] diff --git a/src/jit/helpers.rs b/src/jit/helpers.rs index 609bc2f..15ac1a7 100644 --- a/src/jit/helpers.rs +++ b/src/jit/helpers.rs @@ -226,7 +226,7 @@ extern "C" fn helper_neg(rhs: JITValue, _env: *const VmEnv) -> JITValue { float: -unsafe { rhs.data.float }, }, }, - _ => unreachable!(), + _ => todo!(), } } @@ -239,7 +239,7 @@ extern "C" fn helper_not(rhs: JITValue, _env: *const VmEnv) -> JITValue { bool: !unsafe { rhs.data.bool }, }, }, - _ => unreachable!(), + _ => todo!(), } }