HLSL: add implicit promotions for assignments and function returns.
This commit is contained in:
parent
426542ba57
commit
c4a1307403
8 changed files with 1940 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue