authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-03-20 22:48:36-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-03-20 22:48:36-07:00
log7800ae05a2e00eb289a6fb8589e132ce8d30fa18
tree88a327fcc2af63ffd407a2dfe076f44bce1c3769
parent7598a00f34e91375bc8d4f57e8f5ecbc0d1b4d14

astgen: fix not detecting volatile asm

if only we could have compile errors for unused locals

1 files changed, 1 insertions(+), 1 deletions(-)

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