Use line number information from entire function expression
authorKevin Rogovin <kevin.rogovin@intel.com>
Mon, 9 Dec 2013 08:38:35 +0000 (10:38 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Dec 2013 17:03:54 +0000 (09:03 -0800)
commit23d294bb60be41e3876179e7b763a275902d1efd
tree231da74bd2edfc7c95735cc1fd83b12320c253aa
parentd58090500017dccec9e0991318881057455bc367
Use line number information from entire function expression

This patch changes the error reporting behavior for incorrect function
invocation (triggered by match_function_by_name() unable to find a
matching function call) from using the line number information
associated to the function name term to using the line number
information of the entire function expression. Fixes bug #72264.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72264
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
src/glsl/ast_function.cpp