From 934ebbe900dcc770d7761a87ae35beaf1c5a6797 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 18 Jul 2021 22:29:50 -0700 Subject: [PATCH] stage2: fix AIR not instruction (see prev commit) --- src/codegen/llvm.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index d9090c9f2c..511c3fabf2 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -881,8 +881,8 @@ pub const FuncGen = struct { if (self.liveness.isUnused(inst)) return null; - const un_op = self.air.instructions.items(.data)[inst].un_op; - const operand = try self.resolveInst(un_op); + const ty_op = self.air.instructions.items(.data)[inst].ty_op; + const operand = try self.resolveInst(ty_op.operand); return self.builder.buildNot(operand, ""); }