motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit 28413ffcbad7817c57fd62d5b9908eabdd43147d (tree)
parent 0328c9cbebd1ff907e9936c0986a9664c4509527
Author: Veikka Tuominen <git@vexu.eu>
Date:   Sat, 11 Feb 2023 13:45:07 +0200

Sema: fix typo in `zirCUndef`

Closes #14617

Diffstat:
Msrc/Sema.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Sema.zig b/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; }