HLSL: Report failed assignments; some were silently not happening.
Starting out with this turned off, so tests can be locally fixed, then will turn it on.
This commit is contained in:
parent
879a16581f
commit
b783d712ab
2 changed files with 5 additions and 2 deletions
|
|
@ -1585,6 +1585,9 @@ bool HlslGrammar::acceptAssignmentExpression(TIntermTyped*& node)
|
|||
}
|
||||
|
||||
node = intermediate.addAssign(assignOp, node, rightNode, loc);
|
||||
// TODO: Turn this on after tests are fixed for it:
|
||||
//if (node == nullptr)
|
||||
// parseContext.error(loc, "could not create assignment", "", "");
|
||||
|
||||
if (! peekTokenClass(EHTokComma))
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue