diff --git a/compiler/gen_llvm/src/llvm/build.rs b/compiler/gen_llvm/src/llvm/build.rs index 6637126726..9f2b0d3fe8 100644 --- a/compiler/gen_llvm/src/llvm/build.rs +++ b/compiler/gen_llvm/src/llvm/build.rs @@ -2596,7 +2596,13 @@ pub fn build_exp_stmt<'a, 'ctx, 'env>( let align_bytes = layout.alignment_bytes(env.target_info); if align_bytes > 0 { - debug_assert!(value.is_pointer_value(), "{:?}\n{:?}", value, layout); + debug_assert!( + value.is_pointer_value(), + "{:?}: {:?}\n{:?}", + parent.get_name(), + value, + layout + ); let value_ptr = value.into_pointer_value(); // We can only do this if the function itself writes data into this