mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-14 23:50:35 +01:00
ir_reader: Don't mark functions as defined if their body is empty.
This commit is contained in:
parent
d01bf822dd
commit
d802ba110f
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ read_function_sig(_mesa_glsl_parse_state *st, ir_function *f, s_list *list,
|
|||
|
||||
sig->replace_parameters(&hir_parameters);
|
||||
|
||||
if (!skip_body) {
|
||||
if (!skip_body && !body_list->subexpressions.is_empty()) {
|
||||
if (sig->is_defined) {
|
||||
ir_read_error(st, list, "function %s redefined", f->name);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue