Commit cbd653e1d6

Andrew Kelley <andrew@ziglang.org>
2021-12-02 22:35:35
AstGen: expr-evaluate asm template expressions
See previous commit 1912ec0323af9a9077a8706157beb8207f6e3eb9 for more context. closes #10262
1 parent 005e869
Changed files (1)
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 };
         },
     };