From: Kenneth Graunke Date: Wed, 21 Apr 2010 22:17:26 +0000 (-0700) Subject: Use ir_function_signature::function_name() rather than direct access. X-Git-Tag: 062012170305~10660^2~625^2~369 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f96c52ba2e290e3ba5f14cd7f87ba5b4382a1785;p=profile%2Fivi%2Fmesa.git Use ir_function_signature::function_name() rather than direct access. --- diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index addbeef..94c8dcf 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -2130,7 +2130,7 @@ ast_jump_statement::hir(exec_list *instructions, _mesa_glsl_error(& loc, state, "`return` with a value, in function `%s' " "returning void", - state->current_function->definition->label); + state->current_function->function_name()); } ir_expression *const ret = (ir_expression *) @@ -2150,7 +2150,7 @@ ast_jump_statement::hir(exec_list *instructions, _mesa_glsl_error(& loc, state, "`return' with no value, in function %s returning " "non-void", - state->current_function->definition->label); + state->current_function->function_name()); } inst = new ir_return; }