glsl2: Add declarations for temporaries to instruction stream
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Jul 2010 21:22:05 +0000 (14:22 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Jul 2010 21:56:21 +0000 (14:56 -0700)
commit0b9ae3befb0bf80e000b159fd44c961a144f9c36
treeb081c1b32309b708e8e40ffe3ed78738702f0dc1
parent288733f6001a2148d6689587d9a05e6909e88a61
glsl2: Add declarations for temporaries to instruction stream

Temporary variables added for &&, ||, and ?: were not being added to
the instruction stream.  This resulted in either test failures or
Valgrind being angry after the original IR tree was destroyed by
talloc_free.  The talloc_free caused the ir_variables to be destroyed
even though they were still referenced.
src/glsl/ast_to_hir.cpp