authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-02 14:35:35-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-02 14:35:35-07:00
logcbd653e1d678f0560f5ed3e93a41caa512d93443
treef7841bed9ff7f13dcf3ae4228c0b35243d6c3573
parent005e869abdd5a487531c47abfc82436b870ff0d8

AstGen: expr-evaluate asm template expressions

See previous commit 1912ec0323af9a9077a8706157beb8207f6e3eb9 for more context. closes #10262

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

src/AstGen.zig+1
...@@ -6432,6 +6432,7 @@ fn asmExpr(...@@ -6432,6 +6432,7 @@ fn asmExpr(
6432 // We still need to trigger all the expr() calls here to avoid errors for unused things.6432 // We still need to trigger all the expr() calls here to avoid errors for unused things.
6433 // So we pass 0 as the asm source and stage2 Sema will notice this and6433 // So we pass 0 as the asm source and stage2 Sema will notice this and
6434 // report the error.6434 // report the error.
6435 _ = try comptimeExpr(gz, scope, .none, full.ast.template);
6435 break :blk IndexSlice{ .index = 0, .len = 0 };6436 break :blk IndexSlice{ .index = 0, .len = 0 };
6436 },6437 },
6437 };6438 };