mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
fix list runtime layout
This commit is contained in:
parent
092b43d229
commit
cb302ead99
1 changed files with 1 additions and 4 deletions
|
|
@ -3633,10 +3633,7 @@ pub const Interpreter = struct {
|
|||
|
||||
std.debug.assert(return_rt_var != null);
|
||||
|
||||
const list_layout_idx = self.runtime_layout_store.layouts_by_var.get(return_rt_var.?);
|
||||
std.debug.assert(list_layout_idx != null);
|
||||
|
||||
const list_layout = self.runtime_layout_store.getLayout(list_layout_idx.?);
|
||||
const list_layout = try self.getRuntimeLayout(return_rt_var.?);
|
||||
std.debug.assert(list_layout.tag == .list or list_layout.tag == .list_of_zst);
|
||||
|
||||
// Call listWithCapacity, handling zero-sized types specially
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue