1
Fork 0

ABI checks: add support for some tier3 arches, warn on others.

This commit is contained in:
Luca Versari 2024-11-13 10:56:51 +01:00
parent 22bcb81c66
commit 3d3b515707
2 changed files with 24 additions and 17 deletions

View file

@ -36,9 +36,7 @@ fn do_check_abi<'tcx>(
target_feature_def: DefId,
mut emit_err: impl FnMut(Option<&'static str>),
) {
let Some(feature_def) = tcx.sess.target.features_for_correct_vector_abi() else {
return;
};
let feature_def = tcx.sess.target.features_for_correct_vector_abi();
let codegen_attrs = tcx.codegen_fn_attrs(target_feature_def);
for arg_abi in abi.args.iter().chain(std::iter::once(&abi.ret)) {
let size = arg_abi.layout.size;