mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-01 10:52:18 +00:00
fix gen-llvm
This commit is contained in:
parent
10f04f1d94
commit
039e5dd3d7
1 changed files with 5 additions and 0 deletions
|
@ -2227,6 +2227,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