cbe: airNot emits zig_not_ calls for integers

This commit is contained in:
kcbanner 2022-12-13 02:20:17 -05:00
parent 3d4ff4fdda
commit b86a8b4a5b

View File

@ -3872,12 +3872,12 @@ fn airNot(f: *Function, inst: Air.Inst.Index) !CValue {
const writer = f.object.writer();
const local = try f.allocLocal(inst, inst_ty);
try f.writeCValue(writer, local, .Other);
try writer.writeAll(" = ");
try writer.writeByte('!');
try f.writeCValue(writer, op, .Other);
try writer.writeAll(";\n");
return local;
}