zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 7800ae05a2e00eb289a6fb8589e132ce8d30fa18 (tree)
parent 7598a00f34e91375bc8d4f57e8f5ecbc0d1b4d14
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sat, 20 Mar 2021 22:48:36 -0700

astgen: fix not detecting volatile asm

if only we could have compile errors for unused locals

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

diff --git a/src/astgen.zig b/src/astgen.zig @@ -2994,7 +2994,7 @@ fn asmExpr( } const tag: zir.Inst.Tag = if (full.volatile_token != null) .asm_volatile else .@"asm"; - const result = try gz.addPlNode(.@"asm", node, zir.Inst.Asm{ + const result = try gz.addPlNode(tag, node, zir.Inst.Asm{ .asm_source = asm_source, .return_type = return_type, .output = 0,