| ... | ... | @@ -1480,6 +1480,9 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { |
| 1480 | 1480 | } |
| 1481 | 1481 | |
| 1482 | 1482 | fn genArg(self: *Self, inst: *ir.Inst.Arg) !MCValue { |
| 1483 | const arg_index = self.arg_index; |
| 1484 | self.arg_index += 1; |
| 1485 | |
| 1483 | 1486 | if (FreeRegInt == u0) { |
| 1484 | 1487 | return self.fail(inst.base.src, "TODO implement Register enum for {}", .{self.target.cpu.arch}); |
| 1485 | 1488 | } |
| ... | ... | @@ -1488,8 +1491,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { |
| 1488 | 1491 | |
| 1489 | 1492 | try self.registers.ensureCapacity(self.gpa, self.registers.count() + 1); |
| 1490 | 1493 | |
| 1491 | | const result = self.args[self.arg_index]; |
| 1492 | | self.arg_index += 1; |
| 1494 | const result = self.args[arg_index]; |
| 1493 | 1495 | |
| 1494 | 1496 | const name_with_null = inst.name[0 .. mem.lenZ(inst.name) + 1]; |
| 1495 | 1497 | switch (result) { |