From 765e1fa3724411047e5ad044d2c86d10172ca275 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 18 Sep 2017 18:02:14 -0500 Subject: [PATCH] glsl: Remove spurious assertions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It's inside an if-statement that already checks that the variables are not NULL. Signed-off-by: Ian Romanick Reviewed-by: Alejandro Piñeiro --- 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 b8ef0de0a30..e904e6ede4a 100644 --- a/src/compiler/glsl/opt_copy_propagation.cpp +++ b/src/compiler/glsl/opt_copy_propagation.cpp @@ -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); } } -- 2.30.2