clang-format

Change-Id: Ibb0a7f4612ee5bf12f6c23a2529711808453685c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/132880
Kokoro: Ben Clayton <bclayton@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
Ben Clayton 2023-05-16 11:14:12 +00:00 committed by Dawn LUCI CQ
parent 14ed533565
commit c9dd75a0e9
3 changed files with 22 additions and 24 deletions

View File

@ -101,8 +101,7 @@ Transform::ApplyResult SubstituteOverride::Apply(const Program* src,
// Ensure that objects that are indexed with an override-expression are materialized.
// If the object is not materialized, and the 'override' variable is turned to a 'const', the
// resulting type of the index may change. See: crbug.com/tint/1697.
ctx.ReplaceAll(
[&](const IndexAccessorExpression* expr) -> const IndexAccessorExpression* {
ctx.ReplaceAll([&](const IndexAccessorExpression* expr) -> const IndexAccessorExpression* {
if (auto* sem = src->Sem().Get(expr)) {
if (auto* access = sem->UnwrapMaterialize()->As<sem::IndexAccessorExpression>()) {
if (access->Object()->UnwrapMaterialize()->Type()->HoldsAbstract() &&

View File

@ -154,8 +154,7 @@ Transform::ApplyResult TruncateInterstageVariables::Apply(const Program* src,
}
// Replace return statements with new truncated shader IO struct
ctx.ReplaceAll(
[&](const ReturnStatement* return_statement) -> const ReturnStatement* {
ctx.ReplaceAll([&](const ReturnStatement* return_statement) -> const ReturnStatement* {
auto* return_sem = sem.Get(return_statement);
if (auto mapping_fn_sym =
entry_point_functions_to_truncate_functions.Find(return_sem->Function())) {