Add initialization in case it is causing the Apple Clang release failure.
This commit is contained in:
parent
ffc31cdc5c
commit
7199a6d1a9
1 changed files with 2 additions and 1 deletions
|
|
@ -2626,6 +2626,8 @@ bool HlslGrammar::acceptFunctionBody(TFunctionDeclarator& declarator, TIntermNod
|
||||||
//
|
//
|
||||||
bool HlslGrammar::acceptParenExpression(TIntermTyped*& expression)
|
bool HlslGrammar::acceptParenExpression(TIntermTyped*& expression)
|
||||||
{
|
{
|
||||||
|
expression = nullptr;
|
||||||
|
|
||||||
// LEFT_PAREN
|
// LEFT_PAREN
|
||||||
if (! acceptTokenClass(EHTokLeftParen))
|
if (! acceptTokenClass(EHTokLeftParen))
|
||||||
expected("(");
|
expected("(");
|
||||||
|
|
@ -3674,7 +3676,6 @@ bool HlslGrammar::acceptIterationStatement(TIntermNode*& statement, const TAttri
|
||||||
}
|
}
|
||||||
|
|
||||||
// LEFT_PAREN condition RIGHT_PAREN
|
// LEFT_PAREN condition RIGHT_PAREN
|
||||||
TIntermTyped* condition;
|
|
||||||
if (! acceptParenExpression(condition))
|
if (! acceptParenExpression(condition))
|
||||||
return false;
|
return false;
|
||||||
condition = parseContext.convertConditionalExpression(loc, condition);
|
condition = parseContext.convertConditionalExpression(loc, condition);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue