mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
glsl2: Fix ir_validate validating null variable names.
An unnamed variable in a prototype will have a NULL ->name, so don't worry about storage then. Fixes: CorrectFunction1.vert CorrectParse1.frag
This commit is contained in:
parent
900ab2f564
commit
c22dee7216
1 changed files with 2 additions and 1 deletions
|
|
@ -313,7 +313,8 @@ ir_validate::visit(ir_variable *ir)
|
|||
* in the ir_dereference_variable handler to ensure that a variable is
|
||||
* declared before it is dereferenced.
|
||||
*/
|
||||
assert(talloc_parent(ir->name) == ir);
|
||||
if (ir->name)
|
||||
assert(talloc_parent(ir->name) == ir);
|
||||
|
||||
hash_table_insert(ht, ir, ir);
|
||||
return visit_continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue