Fix rebase
This commit is contained in:
parent
4d66cd8aa8
commit
42e37059a3
15
src/abi.rs
15
src/abi.rs
@ -153,21 +153,6 @@ impl<'gcc, 'tcx> FnAbiGccExt<'gcc, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
|
|||||||
ty
|
ty
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "master")]
|
|
||||||
let apply_attrs = |ty: Type<'gcc>, attrs: &ArgAttributes| {
|
|
||||||
if cx.sess().opts.optimize != config::OptLevel::No
|
|
||||||
&& attrs.regular.contains(rustc_target::abi::call::ArgAttribute::NoAlias)
|
|
||||||
{
|
|
||||||
ty.make_restrict()
|
|
||||||
} else {
|
|
||||||
ty
|
|
||||||
}
|
|
||||||
};
|
|
||||||
#[cfg(not(feature = "master"))]
|
|
||||||
let apply_attrs = |ty: Type<'gcc>, _attrs: &ArgAttributes| {
|
|
||||||
ty
|
|
||||||
};
|
|
||||||
|
|
||||||
for arg in self.args.iter() {
|
for arg in self.args.iter() {
|
||||||
let arg_ty = match arg.mode {
|
let arg_ty = match arg.mode {
|
||||||
PassMode::Ignore => continue,
|
PassMode::Ignore => continue,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user