@@ -215,9 +215,9 @@ impl<'ll, 'tcx> ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
215
215
let align = attrs. pointee_align . unwrap_or ( self . layout . align . abi ) ;
216
216
OperandValue :: Ref ( PlaceValue :: new_sized ( val, align) ) . store ( bx, dst) ;
217
217
}
218
- // Unsized indirect qrguments
218
+ // Unsized indirect arguments cannot be stored
219
219
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 " ) ;
221
221
}
222
222
PassMode :: Cast { cast, pad_i32 : _ } => {
223
223
// 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>> {
272
272
OperandValue :: Pair ( next ( ) , next ( ) ) . store ( bx, dst) ;
273
273
}
274
274
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" ) ;
281
276
}
282
277
PassMode :: Direct ( _)
283
278
| PassMode :: Indirect { attrs : _, meta_attrs : None , on_stack : _ }
0 commit comments