mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
Rename unwrap helpers.
With the addition of the AccessControlType we want to look through the access control as well as the aliases as we work through the type tree. This CL renames UnwrapAliasesIfNeeded to be UnwrapIfNeeded and UnwrapAliasPtrAlias to UnwrapAll. Change-Id: I5b027919c3143a89be24c4d87b8106f70358c03b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/31104 Commit-Queue: David Neto <dneto@google.com> Reviewed-by: Sarah Mashayekhi <sarahmashay@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
c23a5652bd
commit
512ecc2762
@@ -181,7 +181,7 @@ bool BoundArrayAccessorsTransform::ProcessArrayAccessor(
|
||||
return false;
|
||||
}
|
||||
|
||||
auto* ret_type = expr->array()->result_type()->UnwrapAliasPtrAlias();
|
||||
auto* ret_type = expr->array()->result_type()->UnwrapAll();
|
||||
if (!ret_type->IsArray() && !ret_type->IsMatrix() && !ret_type->IsVector()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user