Skip to content

Commit

Permalink
[llvm] Fix OP_ABSF.
Browse files Browse the repository at this point in the history
Fixes mono#9869.
  • Loading branch information
vargaz authored and monojenkins committed Aug 4, 2018
1 parent 093c0dc commit c54db41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/mini-llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -5473,7 +5473,7 @@ process_bb (EmitContext *ctx, MonoBasicBlock *bb)
/* llvm.fabs not supported on all platforms */
args [0] = convert (ctx, lhs, LLVMDoubleType ());
values [ins->dreg] = LLVMBuildCall (builder, get_intrinsic (ctx, "fabs"), args, 1, dname);
values [ins->dreg] = convert (ctx, lhs, LLVMFloatType ());
values [ins->dreg] = convert (ctx, values [ins->dreg], LLVMFloatType ());
#endif
break;
}
Expand Down

0 comments on commit c54db41

Please sign in to comment.