Merge pull request #2602 from jeremy-lunarg/hayes-2514

Issue error when declaration rule fails
This commit is contained in:
Greg Fischer 2021-04-14 16:24:38 -06:00 committed by GitHub
commit b3859343a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -161,8 +161,10 @@ bool HlslGrammar::acceptDeclarationList(TIntermNode*& nodeList)
return true;
// declaration
if (! acceptDeclaration(nodeList))
if (! acceptDeclaration(nodeList)) {
expected("declaration");
return false;
}
} while (true);
return true;