From cbd653e1d678f0560f5ed3e93a41caa512d93443 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 2 Dec 2021 14:35:35 -0700 Subject: [PATCH] AstGen: expr-evaluate asm template expressions See previous commit 1912ec0323af9a9077a8706157beb8207f6e3eb9 for more context. closes #10262 --- src/AstGen.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AstGen.zig b/src/AstGen.zig index 611f3ce600..54682f9341 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -6432,6 +6432,7 @@ fn asmExpr( // We still need to trigger all the expr() calls here to avoid errors for unused things. // So we pass 0 as the asm source and stage2 Sema will notice this and // report the error. + _ = try comptimeExpr(gz, scope, .none, full.ast.template); break :blk IndexSlice{ .index = 0, .len = 0 }; }, };