aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-04-03 04:55:27 -0400
committerJakub Konka <kubkon@jakubkonka.com>2023-04-03 18:02:55 +0200
commit5900dc05804a4089eb7d1ccd8a36b4ade16c02e4 (patch)
tree35b48b2b31be891a3a3f0dcf34562a7c099e2c98 /src/arch
parent562170681a3d0c8502892f8975f369c4b269fe1a (diff)
downloadzig-5900dc05804a4089eb7d1ccd8a36b4ade16c02e4.tar.gz
zig-5900dc05804a4089eb7d1ccd8a36b4ade16c02e4.zip
x86_64: fix typos
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86_64/CodeGen.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index a2d0d4da41..748f996032 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -2528,7 +2528,7 @@ fn airErrUnionPayloadPtrSet(self: *Self, inst: Air.Inst.Index) !void {
const dst_lock = self.register_manager.lockReg(dst_reg);
defer if (dst_lock) |lock| self.register_manager.unlockReg(lock);
- const pl_off = @intCast(i32, errUnionErrorOffset(pl_ty, self.target.*));
+ const pl_off = @intCast(i32, errUnionPayloadOffset(pl_ty, self.target.*));
const dst_abi_size = @intCast(u32, dst_ty.abiSize(self.target.*));
try self.asmRegisterMemory(
.lea,
@@ -5602,7 +5602,7 @@ fn airCmp(self: *Self, inst: Air.Inst.Index, op: math.CompareOperator) !void {
const rhs_mcv = try self.resolveInst(bin_op.rhs);
const rhs_lock = switch (rhs_mcv) {
- .register => |reg| self.register_manager.lockRegAssumeUnused(reg),
+ .register => |reg| self.register_manager.lockReg(reg),
else => null,
};
defer if (rhs_lock) |lock| self.register_manager.unlockReg(lock);