HLSL: add implicit promotions for assignments and function returns.
This commit is contained in:
@@ -2446,7 +2446,7 @@ bool HlslGrammar::acceptJumpStatement(TIntermNode*& statement)
|
||||
TIntermTyped* node;
|
||||
if (acceptExpression(node)) {
|
||||
// hook it up
|
||||
statement = intermediate.addBranch(EOpReturn, node, token.loc);
|
||||
statement = parseContext.handleReturnValue(token.loc, node);
|
||||
} else
|
||||
statement = intermediate.addBranch(EOpReturn, token.loc);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user