ABI checks: add support for some tier3 arches, warn on others.
This commit is contained in:
parent
22bcb81c66
commit
3d3b515707
2 changed files with 24 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue