Skip to content

Commit

Permalink
Non-functional: Retrigger bots; the previous failure looks suspicious.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkslang committed Jul 11, 2018
1 parent cf6bd06 commit 0ea33a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hlsl/hlslGrammar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,11 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& nodeList)
// was actually an assignment such as "float = 4", where "float" is an identifier.
// We put the token back to let further parsing happen for cases where that may
// happen. This errors on the side of caution, and mostly triggers the error.
if (peek() == EHTokAssign || peek() == EHTokLeftBracket || peek() == EHTokDot || peek() == EHTokComma) {
if (peek() == EHTokAssign || peek() == EHTokLeftBracket || peek() == EHTokDot || peek() == EHTokComma)
recedeToken();
return false;
} else {
else
expected(";");
return false;
}
return false;
}

return true;
Expand Down

0 comments on commit 0ea33a2

Please sign in to comment.