Skip to content

Commit 6f242cb

Browse files
tgross35bjorn3
andauthored
fixup! 6acd4e6
Co-authored-by: bjorn3 <[email protected]>
1 parent 6acd4e6 commit 6f242cb

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_codegen_cranelift/src/abi

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_cranelift/src/abi/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
150150
let ret_single_i128 = returns.len() == 1 && returns[0].value_type == types::I128;
151151
if ret_single_i128 && self.tcx.sess.target.is_like_windows {
152152
returns[0].value_type = types::I64X2;
153+
153154
let ret = self.lib_call_unadjusted(name, params, returns, &args)[0];
155+
154156
// FIXME(bytecodealliance/wasmtime#6104) use bitcast instead of store to get from i64x2 to i128
155157
let ret_ptr = self.create_stack_slot(16, 16);
156158
ret_ptr.store(self, ret, MemFlags::trusted());

0 commit comments

Comments
 (0)