Skip to content

Commit ee9e05d

Browse files
okanecoeggyal
authored andcommitted
Fix incorrect cg_clif float call
Per #152597 (comment)
1 parent bb100a1 commit ee9e05d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_codegen_cranelift/src/codegen_f16_f128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ pub(crate) fn codegen_cast(
217217
},
218218
);
219219
let ret =
220-
fx.lib_call(&name, vec![AbiParam::new(from_ty)], vec![AbiParam::new(to_ty)], &[from])
220+
fx.lib_call(&name, vec![AbiParam::new(from_ty)], vec![AbiParam::new(ret_ty)], &[from])
221221
[0];
222222
let val = if ret_ty == to_ty {
223223
ret

0 commit comments

Comments
 (0)