vc4: Drop a weird argument in the BOs-from-handles API.
[mesa.git] / src / glsl / opt_copy_propagation.cpp
index c78cf0cdc0895e6626948c868e4a2fa5cac3a273..5c65af66b84f6da2f581f2e5b42f137a2daa6a3c 100644 (file)
@@ -286,9 +286,7 @@ ir_copy_propagation_visitor::kill(ir_variable *var)
    assert(var != NULL);
 
    /* Remove any entries currently in the ACP for this kill. */
-   foreach_list_safe(n, acp) {
-      acp_entry *entry = (acp_entry *) n;
-
+   foreach_in_list_safe(acp_entry, entry, acp) {
       if (entry->lhs == var || entry->rhs == var) {
         entry->remove();
       }