Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Oct 1, 2024
1 parent b39b38d commit 88a771d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub struct InstructionOperand(Arc<Operand>);
#[inline]
#[allow(unused_variables)]
fn unreachable(s: &str) -> ! {
if cfg!(not(release)) {
if cfg!(debug_assertions) {
unreachable!("{}", s)
} else {
unsafe { std::hint::unreachable_unchecked() }
Expand Down

0 comments on commit 88a771d

Please sign in to comment.