Add initialization in case it is causing the Apple Clang release failure.
This commit is contained in:
parent
ffc31cdc5c
commit
7199a6d1a9
@ -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…
x
Reference in New Issue
Block a user