mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Nicer ICE for #67981
This commit is contained in:
parent
1c42cb4ef0
commit
5b6e747f37
@ -304,7 +304,17 @@ fn arg_local_refs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
||||
bug!("spread argument isn't a tuple?!");
|
||||
};
|
||||
|
||||
let place = PlaceRef::alloca(bx, bx.layout_of(arg_ty));
|
||||
let layout = bx.layout_of(arg_ty);
|
||||
|
||||
// FIXME: support unsized params in "rust-call" ABI
|
||||
if layout.is_unsized() {
|
||||
span_bug!(
|
||||
arg_decl.source_info.span,
|
||||
"\"rust-call\" ABI does not support unsized params",
|
||||
);
|
||||
}
|
||||
|
||||
let place = PlaceRef::alloca(bx, layout);
|
||||
for i in 0..tupled_arg_tys.len() {
|
||||
let arg = &fx.fn_abi.args[idx];
|
||||
idx += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user