stage2: fix AIR not instruction (see prev commit)

This commit is contained in:
Andrew Kelley 2021-07-18 22:29:50 -07:00
parent 414b144257
commit 934ebbe900

View File

@ -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, "");
}