mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Merge branch 'main' into int_overflow
This commit is contained in:
commit
7866331f67
4 changed files with 88 additions and 43 deletions
|
@ -2253,6 +2253,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