glsl: Inherrit type of declared variable from initializer after processing assignment
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 10 Dec 2010 23:48:15 +0000 (15:48 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 11 Dec 2010 01:52:35 +0000 (17:52 -0800)
commitd7f27e2e76eac9bc2ee0fa36f52542fdcb9563dd
tree2c26a70967743c45b871cfefa65382f6a375021f
parentec53010c4d02e11171d3c782a41b70cad76788e8
glsl: Inherrit type of declared variable from initializer after processing assignment

do_assignment may apply implicit conversions to coerce the base type
of initializer to the base type of the variable being declared.  Fixes
piglit test glsl-implicit-conversion-02 (bugzilla #32287).  This
probably also fixes bugzilla #32273.

NOTE: This is a candidate for the 7.9 branch and the 7.10 branch.
src/glsl/ast_to_hir.cpp