glsl: Don't make a name for the function return variable
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 9 Jul 2014 02:04:52 +0000 (19:04 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Sep 2014 20:34:43 +0000 (13:34 -0700)
commit0b47252999e8a220a1478ffdcf952f12e843186a
tree0abd1a3d8b0db0e4db1c14f4ad6c386e38b6ed8d
parentc87d09d7f09fe2e734e97e72baabd7c54f7614a9
glsl: Don't make a name for the function return variable

If the name is just going to get dropped, don't bother making it.  If
the name is made, release it sooner (rather than later).

No change Valgrind massif results for a trimmed apitrace of dota2.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/ast_function.cpp