mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
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:
committed by
Dawn LUCI CQ
parent
80e78e5a15
commit
ef1811a18b
@@ -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.
|
||||
|
||||
@@ -59,7 +59,7 @@ Transform::ApplyResult PadStructs::Apply(const Program* src, const DataMap&, Dat
|
||||
utils::Hashset<const ast::StructMember*, 8> padding_members;
|
||||
|
||||
ctx.ReplaceAll([&](const ast::Struct* ast_str) -> const ast::Struct* {
|
||||
auto* str = sem.Get<sem::Struct>(ast_str);
|
||||
auto* str = sem.Get(ast_str);
|
||||
if (!str || !str->IsHostShareable()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user