Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig

This commit is contained in:
Luke Boswell 2024-11-30 10:18:11 +11:00
commit 656a7bcd87
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
100 changed files with 988 additions and 878 deletions

View file

@ -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,

View file

@ -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);
}