aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_constant_propagation.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-06-24 21:58:35 -0700
committerMatt Turner <[email protected]>2014-07-01 08:55:51 -0700
commitc6a16f6d0e489e6d2a1a75bcf34be00e892b3120 (patch)
tree493e9bd86b9bad457bca713372c5c48718b6eaa0 /src/glsl/opt_constant_propagation.cpp
parente0cb82d0c4ceba437c351d1e37fdb86fe5aed997 (diff)
glsl: Use typed foreach_in_list_safe instead of foreach_list_safe.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/opt_constant_propagation.cpp')
-rw-r--r--src/glsl/opt_constant_propagation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glsl/opt_constant_propagation.cpp b/src/glsl/opt_constant_propagation.cpp
index 42bdad4eb0b..c334e127606 100644
--- a/src/glsl/opt_constant_propagation.cpp
+++ b/src/glsl/opt_constant_propagation.cpp
@@ -393,9 +393,7 @@ ir_constant_propagation_visitor::kill(ir_variable *var, unsigned write_mask)
return;
/* Remove any entries currently in the ACP for this kill. */
- foreach_list_safe(n, this->acp) {
- acp_entry *entry = (acp_entry *) n;
-
+ foreach_in_list_safe(acp_entry, entry, this->acp) {
if (entry->var == var) {
entry->write_mask &= ~write_mask;
if (entry->write_mask == 0)