| ... | ... | @@ -43099,7 +43099,7 @@ fn genExternSymbolRef( |
| 43099 | 43099 | ) InnerError!void { |
| 43100 | 43100 | if (self.bin_file.cast(.coff)) |coff_file| { |
| 43101 | 43101 | const global_index = try coff_file.getGlobalSymbol(callee, lib); |
| 43102 | | const scratch_reg = abi.getCAbiLinkerScratchReg(self.fn_type.fnCallingConvention(self.pt.zcu)); |
| 43102 | const scratch_reg = abi.getCAbiLinkerScratchReg(self.target.cCallingConvention().?); |
| 43103 | 43103 | _ = try self.addInst(.{ |
| 43104 | 43104 | .tag = .mov, |
| 43105 | 43105 | .ops = .import_reloc, |
| ... | ... | @@ -44247,7 +44247,7 @@ fn airTagName(self: *CodeGen, inst: Air.Inst.Index) !void { |
| 44247 | 44247 | try self.genSetReg(param_regs[1], enum_ty, operand, .{}); |
| 44248 | 44248 | |
| 44249 | 44249 | const enum_lazy_sym: link.File.LazySymbol = .{ .kind = .code, .ty = enum_ty.toIntern() }; |
| 44250 | | try self.genLazySymbolRef(.call, abi.getCAbiLinkerScratchReg(self.fn_type.fnCallingConvention(zcu)), enum_lazy_sym); |
| 44250 | try self.genLazySymbolRef(.call, abi.getCAbiLinkerScratchReg(.auto), enum_lazy_sym); |
| 44251 | 44251 | |
| 44252 | 44252 | return self.finishAir(inst, dst_mcv, .{ un_op, .none, .none }); |
| 44253 | 44253 | } |