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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user