From 72d1ea4ac2b5640d9490cca6243be48da171a2bf Mon Sep 17 00:00:00 2001 From: James Price Date: Wed, 26 Apr 2023 17:35:51 +0000 Subject: [PATCH] tint/resolver: Remove duplicate nullptr check Change-Id: If4226d5427c2be270701b7b8d29e9f2ba5aa5ed5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/129500 Commit-Queue: James Price Reviewed-by: Ben Clayton Kokoro: Kokoro --- src/tint/resolver/resolver.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tint/resolver/resolver.cc b/src/tint/resolver/resolver.cc index 58050b9f17..616acc6614 100644 --- a/src/tint/resolver/resolver.cc +++ b/src/tint/resolver/resolver.cc @@ -2586,9 +2586,6 @@ type::Type* Resolver::BuiltinType(builtin::Builtin builtin_ty, const ast::Identi return nullptr; } - if (TINT_UNLIKELY(!el_ty)) { - return nullptr; - } if (TINT_UNLIKELY(!validator_.Vector(el_ty, ident->source))) { return nullptr; }