summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2017-09-18 18:02:14 -0500
committerIan Romanick <ian.d.romanick@intel.com>2017-10-02 14:46:11 -0700
commit765e1fa3724411047e5ad044d2c86d10172ca275 (patch)
tree1069b42c7e77fd9014a956f2b5c0a6490715e13d /src/compiler
parentff5254bf089cdf032465eac225954fe046154cc1 (diff)
glsl: Remove spurious assertions
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>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/opt_copy_propagation.cpp2
1 files changed, 0 insertions, 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);
}
}