mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Use Str.split bitcode with proper arguments and names
This commit is contained in:
parent
006bc6163b
commit
5561f9787e
2 changed files with 30 additions and 9 deletions
|
@ -3078,8 +3078,7 @@ fn build_float_binop<'a, 'ctx, 'env>(
|
|||
let result = bd.build_float_add(lhs, rhs, "add_float");
|
||||
|
||||
let is_finite =
|
||||
call_bitcode_fn(NumIsFinite, env, &[result.into()], &bitcode::MATH_IS_FINITE)
|
||||
.into_int_value();
|
||||
call_bitcode_fn(env, &[result.into()], &bitcode::MATH_IS_FINITE).into_int_value();
|
||||
|
||||
let then_block = context.append_basic_block(parent, "then_block");
|
||||
let throw_block = context.append_basic_block(parent, "throw_block");
|
||||
|
@ -3099,7 +3098,8 @@ fn build_float_binop<'a, 'ctx, 'env>(
|
|||
|
||||
let result = bd.build_float_add(lhs, rhs, "add_float");
|
||||
|
||||
let is_finite = call_bitcode_fn(env, &[result.into()], "is_finite_").into_int_value();
|
||||
let is_finite =
|
||||
call_bitcode_fn(env, &[result.into()], &bitcode::MATH_IS_FINITE).into_int_value();
|
||||
let is_infinite = bd.build_not(is_finite, "negate");
|
||||
|
||||
let struct_type = context.struct_type(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue