From 0aeb77c40f8915c255492cc461cddffd3c9ef722 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Thu, 6 May 2021 08:20:52 +0000 Subject: [PATCH] Fix GCC builds BUG=tint:778 Change-Id: If06e453b6fd58b8c74bed996532b3b9f9f7804ee Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/50044 Auto-Submit: Ryan Harrison Reviewed-by: Antonio Maiorano Reviewed-by: Ben Clayton Commit-Queue: Ben Clayton Kokoro: Kokoro --- src/resolver/resolver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolver/resolver.cc b/src/resolver/resolver.cc index e098271cd1..603f3dda05 100644 --- a/src/resolver/resolver.cc +++ b/src/resolver/resolver.cc @@ -397,7 +397,7 @@ const sem::Type* Resolver::Type(const ast::Type* ty) { } return nullptr; } - if (auto* t = ty->As()) { + if (ty->As()) { return builder_->create(); } if (auto* t = ty->As()) {