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>
feature/deterministic
Zebediah Figura 2020-06-01 17:58:42 -05:00 committed by Alexandre Julliard
parent 2449ff4b8f
commit 7fc0b9a6bd
1 changed files with 2 additions and 7 deletions

View File

@ -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;
}
}