Skip to content

Commit 33e973b

Browse files
committed
Fix simd abi
1 parent db0de6f commit 33e973b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/abi/pass_mode.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ pub(crate) fn adjust_fn_abi_for_rust_abi_mistakes<'tcx>(
359359
if fn_abi.ret.layout.size <= tcx.data_layout.pointer_size() {
360360
return fn_abi;
361361
}
362+
if let BackendRepr::SimdVector { .. } = fn_abi.ret.layout.backend_repr {
363+
return fn_abi;
364+
}
362365
}
363366
PassMode::Pair(..) => {}
364367
}

0 commit comments

Comments
 (0)