tint: static_assert that Sem.Get() template arg is needed

Change-Id: I91a73c22bd417fd9f32d45a1c91ffcb8f8d83d82
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118405
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton
2023-02-05 14:33:08 +00:00
committed by Dawn LUCI CQ
parent 80e78e5a15
commit ef1811a18b
9 changed files with 27 additions and 20 deletions

View File

@@ -990,7 +990,7 @@ struct DirectVariableAccess::State {
return nullptr; // Just clone the expression.
}
auto* expr = sem.Get<sem::ValueExpression>(ast_expr);
auto* expr = sem.Get(ast_expr);
if (!expr) {
// No semantic node for the expression.
return nullptr; // Just clone the expression.