mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
cbe: airNot emits zig_not_ calls for integers
This commit is contained in:
parent
3d4ff4fdda
commit
b86a8b4a5b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user