mirror of
https://github.com/ziglang/zig.git
synced 2026-01-05 04:53:17 +00:00
astgen: fix not detecting volatile asm
if only we could have compile errors for unused locals
This commit is contained in:
parent
7598a00f34
commit
7800ae05a2
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user