Commit 934ebbe900

Andrew Kelley <andrew@ziglang.org>
2021-07-19 07:29:50
stage2: fix AIR not instruction (see prev commit)
1 parent 414b144
Changed files (1)
src
codegen
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, "");
     }