mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Correct calling branches
This commit is contained in:
parent
23f4d02f81
commit
fde75d5432
2 changed files with 19 additions and 25 deletions
|
@ -219,7 +219,7 @@ pub fn call_erased_function<'a>(
|
|||
cond_symbol: value_is_null,
|
||||
cond_layout: Layout::BOOL,
|
||||
// value == null
|
||||
branches: arena.alloc([(0, BranchInfo::None, build_closure_data_branch(env, false))]),
|
||||
branches: arena.alloc([(1, BranchInfo::None, build_closure_data_branch(env, false))]),
|
||||
// value != null
|
||||
default_branch: (
|
||||
BranchInfo::None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue