d3dcompiler: Don't add a record deref to the instruction list twice.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2449ff4b8f
commit
7fc0b9a6bd
|
@ -2323,14 +2323,9 @@ postfix_expr: primary_expr
|
|||
{
|
||||
if (!strcmp($3, field->name))
|
||||
{
|
||||
struct hlsl_ir_load *load = new_record_load(node, field, loc);
|
||||
|
||||
if (!load)
|
||||
{
|
||||
ERR("Out of memory\n");
|
||||
if (!new_record_load(node, field, loc))
|
||||
YYABORT;
|
||||
}
|
||||
$$ = append_unop($1, &load->node);
|
||||
$$ = $1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue