diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-03-20 22:48:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-03-20 22:48:36 -0700 |
| commit | 7800ae05a2e00eb289a6fb8589e132ce8d30fa18 (patch) | |
| tree | 88a327fcc2af63ffd407a2dfe076f44bce1c3769 /src | |
| parent | 7598a00f34e91375bc8d4f57e8f5ecbc0d1b4d14 (diff) | |
| download | zig-7800ae05a2e00eb289a6fb8589e132ce8d30fa18.tar.gz zig-7800ae05a2e00eb289a6fb8589e132ce8d30fa18.zip | |
astgen: fix not detecting volatile asm
if only we could have compile errors for unused locals
Diffstat (limited to 'src')
| -rw-r--r-- | src/astgen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
