ast: Initialize location data in constructor of all ast_node objects.
authorCarl Worth <cworth@cworth.org>
Thu, 29 Jul 2010 23:39:36 +0000 (16:39 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 30 Jul 2010 22:03:37 +0000 (15:03 -0700)
commitec9675ec533cc0c0c7b1c738280e9b9adf2591fb
treecaa3c67ab071c32cef5293a0fa5a623bffba7466
parent40f57c2becbb2cee7cfb6d6ed49dc1db57987e9a
ast: Initialize location data in constructor of all ast_node objects.

This prevents using uninitialized data in _msea_glsl_error in some
cases, (including at least 6 piglit tests). Thanks to valgrind for
pointing out the problem!
src/glsl/glsl_parser_extras.cpp