mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig
This commit is contained in:
commit
656a7bcd87
100 changed files with 988 additions and 878 deletions
|
@ -1834,7 +1834,6 @@ pub(crate) fn build_exp_expr<'a, 'ctx>(
|
|||
Array { elem_layout, elems } => {
|
||||
list_literal(env, layout_interner, scope, *elem_layout, elems)
|
||||
}
|
||||
RuntimeErrorFunction(_) => todo!(),
|
||||
|
||||
UnionAtIndex {
|
||||
tag_id,
|
||||
|
|
|
@ -2217,6 +2217,11 @@ fn build_dec_unary_op<'a, 'ctx>(
|
|||
NumFloor => dec_unary_op(env, &bitcode::DEC_FLOOR[int_width()], arg),
|
||||
NumCeiling => dec_unary_op(env, &bitcode::DEC_CEILING[int_width()], arg),
|
||||
|
||||
// return constant value bools
|
||||
NumIsFinite => env.context.bool_type().const_int(1, false).into(),
|
||||
NumIsInfinite => env.context.bool_type().const_int(0, false).into(),
|
||||
NumIsNan => env.context.bool_type().const_int(0, false).into(),
|
||||
|
||||
_ => {
|
||||
unreachable!("Unrecognized dec unary operation: {:?}", op);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue