diff options
author | Kevin Rogovin <[email protected]> | 2013-12-09 10:38:35 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-12-20 09:03:54 -0800 |
commit | 23d294bb60be41e3876179e7b763a275902d1efd (patch) | |
tree | 231da74bd2edfc7c95735cc1fd83b12320c253aa | |
parent | d58090500017dccec9e0991318881057455bc367 (diff) |
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 <[email protected]>
Cc: "10.0" <[email protected]>
-rw-r--r-- | src/glsl/ast_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 9dbc0d0f74d..605ab8c297e 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -1656,7 +1656,7 @@ ast_function_expression::hir(exec_list *instructions, } else { const ast_expression *id = subexpressions[0]; const char *func_name = id->primary_expression.identifier; - YYLTYPE loc = id->get_location(); + YYLTYPE loc = get_location(); exec_list actual_parameters; process_parameters(instructions, &actual_parameters, &this->expressions, |