mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-17 17:25:01 +00:00
fix bug in use of alignment in free for tag unions
This commit is contained in:
parent
c618cd5a4b
commit
ec0eddb8b2
2 changed files with 3 additions and 2 deletions
|
@ -3464,7 +3464,7 @@ pub(crate) fn build_exp_stmt<'a, 'ctx>(
|
|||
Free(symbol) => {
|
||||
// unconditionally deallocate the symbol
|
||||
let (value, layout) = scope.load_symbol_and_layout(symbol);
|
||||
let alignment = layout_interner.alignment_bytes(layout);
|
||||
let alignment = layout_interner.allocation_alignment_bytes(layout);
|
||||
|
||||
debug_assert!(value.is_pointer_value());
|
||||
let value = value.into_pointer_value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue