This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ pub(super) fn codegen_return_param<'tcx>(
58
58
block_params_iter : & mut impl Iterator < Item = Value > ,
59
59
) -> CPlace < ' tcx > {
60
60
let ( ret_place, ret_param) : ( _ , SmallVec < [ _ ; 2 ] > ) = match fx. fn_abi . as_ref ( ) . unwrap ( ) . ret . mode {
61
- PassMode :: Ignore => ( CPlace :: no_place ( fx. fn_abi . as_ref ( ) . unwrap ( ) . ret . layout ) , smallvec ! [ ] ) ,
62
- PassMode :: Direct ( _) | PassMode :: Pair ( _, _) | PassMode :: Cast ( _) => {
61
+ PassMode :: Ignore | PassMode :: Direct ( _) | PassMode :: Pair ( _, _) | PassMode :: Cast ( _) => {
63
62
let is_ssa = ssa_analyzed[ RETURN_PLACE ] == crate :: analyze:: SsaKind :: Ssa ;
64
63
(
65
64
super :: make_local_place (
Original file line number Diff line number Diff line change @@ -318,17 +318,16 @@ impl<'tcx> CPlace<'tcx> {
318
318
& self . inner
319
319
}
320
320
321
- pub ( crate ) fn no_place ( layout : TyAndLayout < ' tcx > ) -> CPlace < ' tcx > {
322
- CPlace { inner : CPlaceInner :: Addr ( Pointer :: dangling ( layout. align . pref ) , None ) , layout }
323
- }
324
-
325
321
pub ( crate ) fn new_stack_slot (
326
322
fx : & mut FunctionCx < ' _ , ' _ , ' tcx > ,
327
323
layout : TyAndLayout < ' tcx > ,
328
324
) -> CPlace < ' tcx > {
329
325
assert ! ( !layout. is_unsized( ) ) ;
330
326
if layout. size . bytes ( ) == 0 {
331
- return CPlace :: no_place ( layout) ;
327
+ return CPlace {
328
+ inner : CPlaceInner :: Addr ( Pointer :: dangling ( layout. align . pref ) , None ) ,
329
+ layout,
330
+ } ;
332
331
}
333
332
334
333
let stack_slot = fx. bcx . create_stack_slot ( StackSlotData {
You can’t perform that action at this time.
0 commit comments