mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Use RunLowLevel over calling Bool.and
This commit is contained in:
parent
1f6afe1182
commit
ddf980e475
1 changed files with 4 additions and 5 deletions
|
@ -1207,14 +1207,13 @@ fn boolean_all<'a>(arena: &'a Bump, tests: Vec<(Expr<'a>, Expr<'a>, Layout<'a>)>
|
||||||
bumpalo::vec![in arena; (lhs, layout.clone()), (rhs, layout.clone())].into_bump_slice(),
|
bumpalo::vec![in arena; (lhs, layout.clone()), (rhs, layout.clone())].into_bump_slice(),
|
||||||
);
|
);
|
||||||
|
|
||||||
expr = Expr::CallByName {
|
expr = Expr::RunLowLevel(
|
||||||
name: Symbol::BOOL_AND,
|
LowLevel::And,
|
||||||
layout,
|
arena.alloc([
|
||||||
args: arena.alloc([
|
|
||||||
(test, Layout::Builtin(Builtin::Int8)),
|
(test, Layout::Builtin(Builtin::Int8)),
|
||||||
(expr, Layout::Builtin(Builtin::Int8)),
|
(expr, Layout::Builtin(Builtin::Int8)),
|
||||||
]),
|
]),
|
||||||
};
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
expr
|
expr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue