From c23a5652bda18487da7626bd279a7fa913092324 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 28 Oct 2020 20:18:22 +0000 Subject: [PATCH] Fix a couple of typos found in parser_impl.cc Change-Id: Ice4047838ad5c5e48803d8a529f3ca24d2ce77c5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/31262 Reviewed-by: dan sinclair Commit-Queue: dan sinclair Commit-Queue: Ben Clayton --- src/reader/wgsl/parser_impl.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/reader/wgsl/parser_impl.cc b/src/reader/wgsl/parser_impl.cc index 09f5348e26..ac1f606994 100644 --- a/src/reader/wgsl/parser_impl.cc +++ b/src/reader/wgsl/parser_impl.cc @@ -1107,10 +1107,6 @@ ast::type::Type* ParserImpl::type_alias() { set_error(peek(), "invalid type alias"); return nullptr; } - if (type == nullptr) { - set_error(peek(), "invalid type for alias"); - return nullptr; - } auto* alias = ctx_.type_mgr().Get(std::make_unique(name, type)); @@ -1674,7 +1670,7 @@ bool ParserImpl::struct_member_decoration_decl( for (;;) { auto deco = struct_member_decoration(); if (has_error()) - return {}; + return false; if (deco == nullptr) break;