mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
missed a bool
This commit is contained in:
parent
bec74c36c5
commit
834ba77046
@ -479,11 +479,14 @@ impl<'a> Context<'a> {
|
||||
($borrows:expr) => {
|
||||
Expr::Call(crate::ir::Call {
|
||||
call_type: if let Some(OWNED) = $borrows.map(|p| p.borrow) {
|
||||
let mut passed_function = *passed_function;
|
||||
passed_function.owns_captured_environment = true;
|
||||
|
||||
let higher_order = HigherOrderLowLevel {
|
||||
op: *op,
|
||||
closure_env_layout: *closure_env_layout,
|
||||
update_mode: *update_mode,
|
||||
passed_function: *passed_function,
|
||||
passed_function,
|
||||
};
|
||||
|
||||
CallType::HigherOrder(self.arena.alloc(higher_order))
|
||||
|
Loading…
Reference in New Issue
Block a user