Skip to content
Snippets Groups Projects
Commit b783d712 authored by John Kessenich's avatar John Kessenich
Browse files

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.
parent 879a1658
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "SPIRV99.1340"
#define GLSLANG_DATE "26-Jul-2016"
#define GLSLANG_REVISION "SPIRV99.1348"
#define GLSLANG_DATE "27-Jul-2016"
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment