From 7800ae05a2e00eb289a6fb8589e132ce8d30fa18 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 20 Mar 2021 22:48:36 -0700 Subject: [PATCH] astgen: fix not detecting volatile asm if only we could have compile errors for unused locals --- src/astgen.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/astgen.zig b/src/astgen.zig index f9d06e9475..5c621fa54f 100644 --- 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,