mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
pass return layout along to checked add
This commit is contained in:
parent
592a219f5d
commit
42d26a20b6
2 changed files with 4 additions and 4 deletions
|
@ -769,13 +769,12 @@ impl<
|
|||
src1: &Symbol,
|
||||
src2: &Symbol,
|
||||
num_layout: &Layout<'a>,
|
||||
return_layout: &Layout<'a>,
|
||||
) {
|
||||
use Builtin::Int;
|
||||
|
||||
let buf = &mut self.buf;
|
||||
|
||||
let fields = [*num_layout, Layout::bool()];
|
||||
let return_layout = Layout::struct_no_name_order(&fields);
|
||||
let struct_size = return_layout.stack_size(self.target_info);
|
||||
|
||||
let base_offset = self.storage_manager.claim_stack_area(dst, struct_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue