mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Rename type Base methods
This CL renames StructBase and StructMemberBase to drop the Base suffix now that the move is complete. Bug: tint:1718 Change-Id: If8126e4993c58bb2de475c2b18695705082a0a92 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/113800 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
ac146b1a48
commit
28a7827981
@@ -42,7 +42,7 @@ Transform::ApplyResult PromoteInitializersToLet::Apply(const Program* src,
|
||||
// Returns true if the expression should be hoisted to a new let statement before the
|
||||
// expression's statement.
|
||||
auto should_hoist = [&](const sem::Expression* expr) {
|
||||
if (!expr->Type()->IsAnyOf<type::Array, type::StructBase>()) {
|
||||
if (!expr->Type()->IsAnyOf<type::Array, type::Struct>()) {
|
||||
// We only care about array and struct initializers
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user