From: Ian Romanick Date: Mon, 18 Sep 2017 23:02:14 +0000 (-0500) Subject: glsl: Remove spurious assertions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=765e1fa3724411047e5ad044d2c86d10172ca275;hp=ff5254bf089cdf032465eac225954fe046154cc1;p=mesa.git glsl: Remove spurious assertions 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 --- 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); } }