mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Fix compilation error in GCC backend
This commit is contained in:
parent
c123dc63ea
commit
84f582665e
@ -404,7 +404,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
|
|||||||
|
|
||||||
let ret_indirect = matches!(fn_abi.ret.mode, PassMode::Indirect { .. });
|
let ret_indirect = matches!(fn_abi.ret.mode, PassMode::Indirect { .. });
|
||||||
|
|
||||||
let result = if ret_indirect {
|
let call = if ret_indirect {
|
||||||
let res_value = self.current_func().new_local(self.location, res_type, "result_value");
|
let res_value = self.current_func().new_local(self.location, res_type, "result_value");
|
||||||
let res_addr = res_value.get_address(self.location);
|
let res_addr = res_value.get_address(self.location);
|
||||||
let res_param_type = res_type.make_pointer();
|
let res_param_type = res_type.make_pointer();
|
||||||
|
Loading…
Reference in New Issue
Block a user