aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2023-02-11 13:45:07 +0200
committerVeikka Tuominen <git@vexu.eu>2023-02-11 14:36:54 +0200
commit28413ffcbad7817c57fd62d5b9908eabdd43147d (patch)
tree12b4b659440fe17242eac3e5712cd99f00f9fafc /src
parent0328c9cbebd1ff907e9936c0986a9664c4509527 (diff)
downloadzig-28413ffcbad7817c57fd62d5b9908eabdd43147d.tar.gz
zig-28413ffcbad7817c57fd62d5b9908eabdd43147d.zip
Sema: fix typo in `zirCUndef`
Closes #14617
Diffstat (limited to 'src')
-rw-r--r--src/Sema.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index ddcdecb6b4..9eef07648d 100644
--- 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;
}