mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
add debug print
This commit is contained in:
parent
f132a527c0
commit
0f3ae18c74
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue