Skip to content

Commit

Permalink
Codegen: don't pun float func arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
xal-0 committed Feb 13, 2025
1 parent 4eb0368 commit 0dce3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,8 +1434,8 @@ static jl_cgval_t emit_intrinsic(jl_codectx_t &ctx, intrinsic f, jl_value_t **ar
if (!jl_is_primitivetype(xinfo.typ))
return emit_runtime_call(ctx, f, argv, nargs);
Type *xtyp = bitstype_to_llvm(xinfo.typ, ctx.builder.getContext(), true);
if (float_func()[f])
xtyp = FLOATT(xtyp);
if (float_func()[f] && !xtyp->isFloatingPointTy())
xtyp = NULL;
else
xtyp = INTT(xtyp, DL);
if (!xtyp)
Expand Down

0 comments on commit 0dce3a3

Please sign in to comment.