diff --git a/compiler/gen_wasm/src/lib.rs b/compiler/gen_wasm/src/lib.rs index 7030419e49..8170a345f3 100644 --- a/compiler/gen_wasm/src/lib.rs +++ b/compiler/gen_wasm/src/lib.rs @@ -213,7 +213,7 @@ macro_rules! round_up_to_alignment { if $alignment_bytes <= 1 { $unaligned } else if $alignment_bytes.count_ones() != 1 { - panic!( + internal_error!( "Cannot align to {} bytes. Not a power of 2.", $alignment_bytes );