fix alignment bug in list literals

This commit is contained in:
Folkert 2023-09-13 14:02:55 +02:00
parent 44777c5cac
commit 3c8dbce72e
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 24 additions and 7 deletions

View file

@ -3104,7 +3104,7 @@ impl<
// Load allocation alignment (u32)
let element_alignment_symbol = Symbol::DEV_TMP2;
self.load_layout_alignment(Layout::U32, element_alignment_symbol);
self.load_layout_alignment(*element_in_layout, element_alignment_symbol);
let allocation_symbol = self.debug_symbol("list_allocation");
self.allocate_with_refcount(