diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-25 15:38:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-25 15:38:56 +0100 |
| commit | fa0d58f96ea0d576cf4adbd77480cfd4ce0510c4 (patch) | |
| tree | 6dcb43d5498b94bbacf647672d42dc24fb27787a /src/llvm_backend_expr.cpp | |
| parent | ebc09d5e4ee956e2ffa7e18f9f0c57af6433c64b (diff) | |
Correct f64 -> u128/i128 generation
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index b2ef6d0d0..0f05e9b45 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -1194,7 +1194,7 @@ lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) { res = lb_emit_conv(p, value, platform_src_type); res = lb_emit_conv(p, res, platform_dst_type); if (is_type_different_to_arch_endianness(dst)) { - res = lb_emit_byte_swap(p, res, t); + res = lb_emit_byte_swap(p, res, platform_dst_type); } return lb_emit_conv(p, res, t); } |