Fix for empty statement segfault.

This commit is contained in:
LoopDawg
2016-06-03 09:17:51 -06:00
parent 9f1f818083
commit ef764a24b2
2 changed files with 5 additions and 3 deletions

View File

@@ -492,6 +492,8 @@ bool HlslGrammar::acceptFunctionDefinition(TFunction& function, TIntermNode*& no
//
bool HlslGrammar::acceptExpression(TIntermTyped*& node)
{
node = nullptr;
// assignment_expression
if (! acceptAssignmentExpression(node))
return false;