Module: Mesa Branch: master Commit: 765e1fa3724411047e5ad044d2c86d10172ca275 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=765e1fa3724411047e5ad044d2c86d10172ca275
Author: Ian Romanick <[email protected]> Date: Mon Sep 18 18:02:14 2017 -0500 glsl: Remove spurious assertions It's inside an if-statement that already checks that the variables are not NULL. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Alejandro PiƱeiro <[email protected]> --- 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 b8ef0de0a3..e904e6ede4 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); } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
