Skip to content

Commit 0dce3a3

Browse files
committed
Codegen: don't pun float func arguments
1 parent 4eb0368 commit 0dce3a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/intrinsics.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1434,8 +1434,8 @@ static jl_cgval_t emit_intrinsic(jl_codectx_t &ctx, intrinsic f, jl_value_t **ar
14341434
if (!jl_is_primitivetype(xinfo.typ))
14351435
return emit_runtime_call(ctx, f, argv, nargs);
14361436
Type *xtyp = bitstype_to_llvm(xinfo.typ, ctx.builder.getContext(), true);
1437-
if (float_func()[f])
1438-
xtyp = FLOATT(xtyp);
1437+
if (float_func()[f] && !xtyp->isFloatingPointTy())
1438+
xtyp = NULL;
14391439
else
14401440
xtyp = INTT(xtyp, DL);
14411441
if (!xtyp)

0 commit comments

Comments
 (0)