diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-04-21 15:17:26 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-21 15:36:36 -0700 |
commit | f96c52ba2e290e3ba5f14cd7f87ba5b4382a1785 (patch) | |
tree | 40f6c21cd6b7798e5ae7de34934387231dc14f21 | |
parent | 67a092ae09dbb2dd820aab5aa7742d3f884d6cd4 (diff) |
Use ir_function_signature::function_name() rather than direct access.
-rw-r--r-- | ast_to_hir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index addbeefc4b..94c8dcfbd8 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; } |