mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Replace Variable::(Is|As)* with Castable
Change-Id: I7a49287af079d53cee095fa2243dd21757546b56 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34318 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -100,11 +100,11 @@ std::string Inspector::GetRemappedNameForEntryPoint(
|
||||
std::map<uint32_t, Scalar> Inspector::GetConstantIDs() {
|
||||
std::map<uint32_t, Scalar> result;
|
||||
for (auto* var : module_.global_variables()) {
|
||||
if (!var->IsDecorated()) {
|
||||
auto* decorated = var->As<ast::DecoratedVariable>();
|
||||
if (decorated == nullptr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto* decorated = var->AsDecorated();
|
||||
if (!decorated->HasConstantIdDecoration()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user