mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
changing const_zero to const_int
This commit is contained in:
parent
d11bb93539
commit
df91f63af8
1 changed files with 3 additions and 1 deletions
|
@ -5146,7 +5146,9 @@ fn run_higher_order_low_level<'a, 'ctx, 'env>(
|
|||
let (function, closure, closure_layout) = function_details!();
|
||||
|
||||
match list_layout {
|
||||
Layout::Builtin(Builtin::EmptyList) => env.context.bool_type().const_zero().into(),
|
||||
Layout::Builtin(Builtin::EmptyList) => {
|
||||
env.context.bool_type().const_int(1, false).into()
|
||||
}
|
||||
Layout::Builtin(Builtin::List(element_layout)) => {
|
||||
let argument_layouts = &[**element_layout];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue