[Mesa-dev] [PATCH 21/22] glsl: Remove spurious assertions

Ian Romanick idr at freedesktop.org
Thu Sep 21 14:34:34 UTC 2017


From: "\"Ian Romanick\"" <idr at freedesktop.org>

From: Ian Romanick <ian.d.romanick at intel.com>

It's inside an if-statement that already checks that the variables are
not NULL.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/compiler/glsl/opt_copy_propagation.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/compiler/glsl/opt_copy_propagation.cpp b/src/compiler/glsl/opt_copy_propagation.cpp
index 301a2af..ec8a0ed 100644
--- a/src/compiler/glsl/opt_copy_propagation.cpp
+++ b/src/compiler/glsl/opt_copy_propagation.cpp
@@ -352,8 +352,6 @@ ir_copy_propagation_visitor::add_copy(ir_assignment *ir)
       if (lhs_var->data.mode != ir_var_shader_storage &&
           lhs_var->data.mode != ir_var_shader_shared &&
           lhs_var->data.precise == rhs_var->data.precise) {
-         assert(lhs_var);
-         assert(rhs_var);
          _mesa_hash_table_insert(acp, lhs_var, rhs_var);
       }
    }
-- 
2.9.5



More information about the mesa-dev mailing list