Fix return address type

This commit is contained in:
bjorn3 2023-02-17 19:39:07 +00:00
parent dd5ffc2e18
commit a7c0cfc113

View File

@ -142,7 +142,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
let indirect_ret_val = returns.len() == 1 && returns[0].value_type == types::I128;
if indirect_ret_val {
params.insert(0, AbiParam::new(types::I128));
params.insert(0, AbiParam::new(self.pointer_type));
let ret_ptr =
Pointer::stack_slot(self.bcx.create_sized_stack_slot(StackSlotData {
kind: StackSlotKind::ExplicitSlot,