Zebediah Figura : d3dcompiler: Don't add a record deref to the instruction list twice.
Alexandre Julliard
julliard at winehq.org
Wed Jun 3 16:40:58 CDT 2020
Module: wine
Branch: master
Commit: 7fc0b9a6bd63bdfaccbcb363018eaa99853d8b7d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7fc0b9a6bd63bdfaccbcb363018eaa99853d8b7d
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Mon Jun 1 17:58:42 2020 -0500
d3dcompiler: Don't add a record deref to the instruction list twice.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dcompiler_43/hlsl.y | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y
index 236fc8c186..f94e9a6462 100644
--- a/dlls/d3dcompiler_43/hlsl.y
+++ b/dlls/d3dcompiler_43/hlsl.y
@@ -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;
}
}
More information about the wine-cvs
mailing list