mirror of
https://github.com/ziglang/zig.git
synced 2026-01-01 19:13:16 +00:00
AstGen: expr-evaluate asm template expressions
See previous commit 1912ec0323af9a9077a8706157beb8207f6e3eb9 for more context. closes #10262
This commit is contained in:
parent
005e869abd
commit
cbd653e1d6
@ -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 };
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user