diff options
| -rw-r--r-- | src/abi/returning.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/abi/returning.rs b/src/abi/returning.rs index cb2beed2ca7..3b126938f14 100644 --- a/src/abi/returning.rs +++ b/src/abi/returning.rs @@ -44,9 +44,9 @@ pub(crate) fn can_return_to_ssa_var<'tcx>( FnAbi::of_fn_ptr(&RevealAllLayoutCx(fx.tcx), fn_ty.fn_sig(fx.tcx), &extra_args) }; match fn_abi.ret.mode { - PassMode::Ignore | PassMode::Direct(_) | PassMode::Pair(_, _) => true, - // FIXME Make it possible to return Cast and Indirect to an ssa var. - PassMode::Cast(_) | PassMode::Indirect { .. } => false, + PassMode::Ignore | PassMode::Direct(_) | PassMode::Pair(_, _) | PassMode::Cast(_) => true, + // FIXME Make it possible to return Indirect to an ssa var. + PassMode::Indirect { .. } => false, } } |
