[Mesa-dev] [PATCH] glsl/ast: Fix loss of error_emitted value due to reassignment
Danylo Piliaiev
danylo.piliaiev at gmail.com
Wed Jul 18 08:53:28 UTC 2018
Signed-off-by: Danylo Piliaiev <danylo.piliaiev at globallogic.com>
---
src/compiler/glsl/ast_to_hir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index dd60a2a87f..8a4cc56511 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -1938,7 +1938,7 @@ ast_expression::do_hir(exec_list *instructions,
result = get_lvalue_copy(instructions, op[0]->clone(ctx, NULL));
ir_rvalue *junk_rvalue;
- error_emitted =
+ error_emitted |=
do_assignment(instructions, state,
this->subexpressions[0]->non_lvalue_description,
op[0]->clone(ctx, NULL), temp_rhs,
--
2.17.1
More information about the mesa-dev
mailing list