mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41: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(),
|
||||
);
|
||||
|
||||
expr = Expr::CallByName {
|
||||
name: Symbol::BOOL_AND,
|
||||
layout,
|
||||
args: arena.alloc([
|
||||
expr = Expr::RunLowLevel(
|
||||
LowLevel::And,
|
||||
arena.alloc([
|
||||
(test, Layout::Builtin(Builtin::Int8)),
|
||||
(expr, Layout::Builtin(Builtin::Int8)),
|
||||
]),
|
||||
};
|
||||
);
|
||||
}
|
||||
|
||||
expr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue