Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a7c0cfc

Browse files
committed
Fix return address type
1 parent dd5ffc2 commit a7c0cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
142142
let indirect_ret_val = returns.len() == 1 && returns[0].value_type == types::I128;
143143

144144
if indirect_ret_val {
145-
params.insert(0, AbiParam::new(types::I128));
145+
params.insert(0, AbiParam::new(self.pointer_type));
146146
let ret_ptr =
147147
Pointer::stack_slot(self.bcx.create_sized_stack_slot(StackSlotData {
148148
kind: StackSlotKind::ExplicitSlot,

0 commit comments

Comments
 (0)