mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
don't double-alloca non-recursive tags
This commit is contained in:
parent
9956a06355
commit
de6349fbbd
2 changed files with 20 additions and 6 deletions
|
@ -2581,6 +2581,7 @@ 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);
|
||||
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