glsl: remove redudant assignment
authorTapani Pälli <tapani.palli@intel.com>
Thu, 9 Apr 2020 07:47:54 +0000 (10:47 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Sun, 12 Apr 2020 13:48:53 +0000 (16:48 +0300)
CID: 1461087
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4500>

src/compiler/glsl/ast_to_hir.cpp

index a66ed5ec52b0965dface57edb04f667137d9f8c7..b5b0a509ea1c808f93c48de5631de48c4e569eb0 100644 (file)
@@ -1690,7 +1690,6 @@ ast_expression::do_hir(exec_list *instructions,
       /* Break out if operand types were not parsed successfully. */
       if ((op[0]->type == glsl_type::error_type ||
            op[1]->type == glsl_type::error_type)) {
-         type = glsl_type::error_type;
          error_emitted = true;
          break;
       }