Fix for empty statement segfault.
This commit is contained in:
parent
9f1f818083
commit
ef764a24b2
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue