Commit 7fc0b9a6 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3dcompiler: Don't add a record deref to the instruction list twice.

parent 2449ff4b
...@@ -2323,14 +2323,9 @@ postfix_expr: primary_expr ...@@ -2323,14 +2323,9 @@ postfix_expr: primary_expr
{ {
if (!strcmp($3, field->name)) if (!strcmp($3, field->name))
{ {
struct hlsl_ir_load *load = new_record_load(node, field, loc); if (!new_record_load(node, field, loc))
if (!load)
{
ERR("Out of memory\n");
YYABORT; YYABORT;
} $$ = $1;
$$ = append_unop($1, &load->node);
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment