explain PassMode::Cast
This commit is contained in:
parent
9cbc90c0ae
commit
7740476a43
7 changed files with 38 additions and 27 deletions
|
@ -327,7 +327,7 @@ fn arg_local_refs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
|||
for i in 0..tupled_arg_tys.len() {
|
||||
let arg = &fx.fn_abi.args[idx];
|
||||
idx += 1;
|
||||
if let PassMode::Cast(_, true) = arg.mode {
|
||||
if let PassMode::Cast { pad_i32: true, .. } = arg.mode {
|
||||
llarg_idx += 1;
|
||||
}
|
||||
let pr_field = place.project_field(bx, i);
|
||||
|
@ -351,7 +351,7 @@ fn arg_local_refs<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
|
|||
|
||||
let arg = &fx.fn_abi.args[idx];
|
||||
idx += 1;
|
||||
if let PassMode::Cast(_, true) = arg.mode {
|
||||
if let PassMode::Cast { pad_i32: true, .. } = arg.mode {
|
||||
llarg_idx += 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue