mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 11:30:11 +01:00
ir_reader: Remove useless error check.
It's already been determined that length == 3, so clearly swiz->next is a valid S-Expression.
This commit is contained in:
parent
0fd665ca63
commit
e751ce39bf
1 changed files with 0 additions and 6 deletions
|
|
@ -799,12 +799,6 @@ read_swizzle(_mesa_glsl_parse_state *st, s_list *list)
|
|||
}
|
||||
|
||||
s_expression *sub = (s_expression*) swiz->next;
|
||||
if (sub == NULL) {
|
||||
ir_read_error(st, list, "expected rvalue: (swizzle %s <rvalue>)",
|
||||
swiz->value());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ir_rvalue *rvalue = read_rvalue(st, sub);
|
||||
if (rvalue == NULL)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue