From e564a0ad319c8fabddc3e62616be0dbfd761ecec Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Wed, 27 Jan 2021 10:33:06 +0100 Subject: [PATCH] Rustfmt --- src/abi/returning.rs | 2 +- src/analyze.rs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/abi/returning.rs b/src/abi/returning.rs index 8376f845734b..3acfae3e1e52 100644 --- a/src/abi/returning.rs +++ b/src/abi/returning.rs @@ -4,7 +4,7 @@ use crate::prelude::*; use rustc_middle::ty::layout::FnAbiExt; use rustc_target::abi::call::{ArgAbi, FnAbi, PassMode}; -use smallvec::{SmallVec, smallvec}; +use smallvec::{smallvec, SmallVec}; /// Can the given type be returned into an ssa var or does it need to be returned on the stack. pub(crate) fn can_return_to_ssa_var<'tcx>( diff --git a/src/analyze.rs b/src/analyze.rs index dc5e8a7e3049..62fbcfe3f7a5 100644 --- a/src/analyze.rs +++ b/src/analyze.rs @@ -40,7 +40,12 @@ pub(crate) fn analyze(fx: &FunctionCx<'_, '_, impl Module>) -> IndexVec { + TerminatorKind::Call { + destination, + func, + args, + .. + } => { if let Some((dest_place, _dest_bb)) = destination { if !crate::abi::can_return_to_ssa_var(fx, func, args) { not_ssa(&mut flag_map, dest_place.local)