glsl: Remove spurious assertions
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 18 Sep 2017 23:02:14 +0000 (18:02 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 2 Oct 2017 21:46:11 +0000 (14:46 -0700)
It's inside an if-statement that already checks that the variables are
not NULL.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/opt_copy_propagation.cpp

index b8ef0de0a301317f3c26105444ec7a8a1dd4c7af..e904e6ede4a23134badceaceef79d6346fe2b6bb 100644 (file)
@@ -355,8 +355,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);
       }
    }