mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
pass layout by reference
This commit is contained in:
parent
e2f7606f25
commit
13713ee6ad
1 changed files with 2 additions and 2 deletions
|
@ -1134,7 +1134,7 @@ pub enum CallType<'a> {
|
|||
},
|
||||
Foreign {
|
||||
foreign_symbol: ForeignSymbol,
|
||||
ret_layout: Layout<'a>,
|
||||
ret_layout: &'a Layout<'a>,
|
||||
},
|
||||
LowLevel {
|
||||
op: LowLevel,
|
||||
|
@ -3947,7 +3947,7 @@ pub fn with_hole<'a>(
|
|||
let call = self::Call {
|
||||
call_type: CallType::Foreign {
|
||||
foreign_symbol,
|
||||
ret_layout: layout,
|
||||
ret_layout: env.arena.alloc(layout),
|
||||
},
|
||||
arguments: arg_symbols,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue