[Mesa-dev] [PATCH] Fix line number on no matching function call

Kevin Rogovin kevin.rogovin at intel.com
Fri Dec 6 00:34:33 PST 2013


This (very tiny) patch fixes the bug (#72264) where when 
no matching function call was found the error message
gave the line and column number as 0.

---
 src/glsl/ast_function.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index 6423759..9dc5427 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,
-- 
1.8.1.2



More information about the mesa-dev mailing list