mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
don't copy zero-sized types to the stack
This commit is contained in:
parent
35c507a33f
commit
0fa85fe91d
2 changed files with 6 additions and 0 deletions
|
@ -3175,6 +3175,11 @@ impl<
|
|||
let mut copied = 0;
|
||||
let size = stack_size as i32;
|
||||
|
||||
if size == 0 {
|
||||
storage_manager.no_data(&dst);
|
||||
return;
|
||||
}
|
||||
|
||||
let base_offset = storage_manager.claim_stack_area(&dst, stack_size);
|
||||
|
||||
if size - copied >= 8 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue