mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
ir_constant_visitor: Handle dereferences of constant records
This commit is contained in:
parent
b94c29a47b
commit
253dedeb6c
1 changed files with 3 additions and 3 deletions
|
|
@ -566,9 +566,9 @@ ir_constant_visitor::visit(ir_dereference_array *ir)
|
|||
void
|
||||
ir_constant_visitor::visit(ir_dereference_record *ir)
|
||||
{
|
||||
(void) ir;
|
||||
value = NULL;
|
||||
/* FINISHME: Other dereference modes. */
|
||||
ir_constant *v = ir->record->constant_expression_value();
|
||||
|
||||
this->value = (v != NULL) ? v->get_record_field(ir->field) : NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue