aboutsummaryrefslogtreecommitdiff
path: root/src/AstGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-02 14:35:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-12-02 14:35:35 -0700
commitcbd653e1d678f0560f5ed3e93a41caa512d93443 (patch)
treef7841bed9ff7f13dcf3ae4228c0b35243d6c3573 /src/AstGen.zig
parent005e869abdd5a487531c47abfc82436b870ff0d8 (diff)
downloadzig-cbd653e1d678f0560f5ed3e93a41caa512d93443.tar.gz
zig-cbd653e1d678f0560f5ed3e93a41caa512d93443.zip
AstGen: expr-evaluate asm template expressions
See previous commit 1912ec0323af9a9077a8706157beb8207f6e3eb9 for more context. closes #10262
Diffstat (limited to 'src/AstGen.zig')
-rw-r--r--src/AstGen.zig1
1 files changed, 1 insertions, 0 deletions
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 };
},
};