HLSL: Fix #919: for-init-statement is arbitrary declaration or expression.
authorJohn Kessenich <cepheus@frii.com>
Tue, 6 Jun 2017 17:37:33 +0000 (11:37 -0600)
committerJohn Kessenich <cepheus@frii.com>
Tue, 6 Jun 2017 17:37:33 +0000 (11:37 -0600)
commit0e07119ae295b5624006518a9046c3fcd16087e2
treed65f9efb774fa0788c3807aef898ec35f5f4597e
parente00e8f45a60adb7fd2a84c6f6b608372a5398014
HLSL: Fix #919: for-init-statement is arbitrary declaration or expression.

Unlike "if (XXX)" and "while (XXX)", with "for (YYY...", the YYY can be
more kinds of statements than the XXX.
Test/baseResults/hlsl.forLoop.frag.out
Test/hlsl.forLoop.frag
glslang/MachineIndependent/Intermediate.cpp
hlsl/hlslGrammar.cpp
hlsl/hlslGrammar.h