diff --git a/src/llvm/operand.rs b/src/llvm/operand.rs index da48869..f25568f 100644 --- a/src/llvm/operand.rs +++ b/src/llvm/operand.rs @@ -94,7 +94,7 @@ pub struct InstructionOperand(Arc); #[inline] #[allow(unused_variables)] fn unreachable(s: &str) -> ! { - if cfg!(not(release)) { + if cfg!(debug_assertions) { unreachable!("{}", s) } else { unsafe { std::hint::unreachable_unchecked() }