astgen: fix not detecting volatile asm

if only we could have compile errors for unused locals
This commit is contained in:
Andrew Kelley 2021-03-20 22:48:36 -07:00
parent 7598a00f34
commit 7800ae05a2

View File

@ -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,