AstGen: expr-evaluate asm template expressions

See previous commit 1912ec0323af9a9077a8706157beb8207f6e3eb9 for more
context.

closes #10262
This commit is contained in:
Andrew Kelley 2021-12-02 14:35:35 -07:00
parent 005e869abd
commit cbd653e1d6

View File

@ -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 };
},
};