We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf2170 commit bd8e5ceCopy full SHA for bd8e5ce
compiler/rustc_target/src/abi/call/bpf.rs
@@ -1,19 +1,19 @@
1
-// see BPFCallingConv.td
+// see https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/BPF/BPFCallingConv.td
2
use crate::abi::call::{ArgAbi, FnAbi};
3
4
fn classify_ret<Ty>(ret: &mut ArgAbi<'_, Ty>) {
5
if ret.layout.is_aggregate() || ret.layout.size.bits() > 64 {
6
ret.make_indirect();
7
} else {
8
- ret.extend_integer_width_to(64);
+ ret.extend_integer_width_to(32);
9
}
10
11
12
fn classify_arg<Ty>(arg: &mut ArgAbi<'_, Ty>) {
13
if arg.layout.is_aggregate() || arg.layout.size.bits() > 64 {
14
arg.make_indirect();
15
16
- arg.extend_integer_width_to(64);
+ arg.extend_integer_width_to(32);
17
18
19
0 commit comments