Skip to content

Commit

Permalink
update call
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Jiang committed Oct 3, 2024
1 parent 7d27ceb commit d09e27d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_target/src/abi/call/powerpc64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ where
return;
}

// The AIX ABI expect byval for aggregates
// See https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/Targets/PPC.cpp.
if !is_ret && abi == AIX {
arg.make_indirect_byval(None);
arg.pass_by_stack_offset(None);
return;
}

Expand Down

0 comments on commit d09e27d

Please sign in to comment.