@@ -215,9 +215,9 @@ impl<'ll, 'tcx> ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
215215 let align = attrs. pointee_align . unwrap_or ( self . layout . align . abi ) ;
216216 OperandValue :: Ref ( PlaceValue :: new_sized ( val, align) ) . store ( bx, dst) ;
217217 }
218- // Unsized indirect qrguments
218+ // Unsized indirect arguments cannot be stored
219219 PassMode :: Indirect { attrs : _, meta_attrs : Some ( _) , on_stack : _ } => {
220- bug ! ( "unsized `ArgAbi` must be handled through `store_fn_arg` " ) ;
220+ bug ! ( "unsized `ArgAbi` cannot be stored " ) ;
221221 }
222222 PassMode :: Cast { cast, pad_i32 : _ } => {
223223 // The ABI mandates that the value is passed as a different struct representation.
@@ -272,12 +272,7 @@ impl<'ll, 'tcx> ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
272272 OperandValue :: Pair ( next ( ) , next ( ) ) . store ( bx, dst) ;
273273 }
274274 PassMode :: Indirect { attrs : _, meta_attrs : Some ( _) , on_stack : _ } => {
275- let place_val = PlaceValue {
276- llval : next ( ) ,
277- llextra : Some ( next ( ) ) ,
278- align : self . layout . align . abi ,
279- } ;
280- OperandValue :: Ref ( place_val) . store ( bx, dst) ;
275+ bug ! ( "unsized `ArgAbi` cannot be stored" ) ;
281276 }
282277 PassMode :: Direct ( _)
283278 | PassMode :: Indirect { attrs : _, meta_attrs : None , on_stack : _ }
0 commit comments