Commit 28413ffcba

Veikka Tuominen <git@vexu.eu>
2023-02-11 12:45:07
Sema: fix typo in `zirCUndef`
Closes #14617
1 parent 0328c9c
Changed files (1)
src/Sema.zig
@@ -21935,7 +21935,7 @@ fn zirCUndef(
     const src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = extra.node };
 
     const name = try sema.resolveConstString(block, src, extra.operand, "name of macro being undefined must be comptime-known");
-    try block.c_import_buf.?.writer().print("#undefine {s}\n", .{name});
+    try block.c_import_buf.?.writer().print("#undef {s}\n", .{name});
     return Air.Inst.Ref.void_value;
 }