Commit 7800ae05a2

Andrew Kelley <andrew@ziglang.org>
2021-03-21 06:48:36
astgen: fix not detecting volatile asm
if only we could have compile errors for unused locals
1 parent 7598a00
Changed files (1)
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,