glsl: Use typed foreach_in_list_safe instead of foreach_list_safe.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Matt Turner
2014-06-24 21:58:35 -07:00
parent e0cb82d0c4
commit c6a16f6d0e
20 changed files with 41 additions and 87 deletions

View File

@@ -229,15 +229,13 @@ public:
static void
destroy_links(exec_list *list, function *f)
{
foreach_list_safe(node, list) {
struct call_node *n = (struct call_node *) node;
foreach_in_list_safe(call_node, node, list) {
/* If this is the right function, remove it. Note that the loop cannot
* terminate now. There can be multiple links to a function if it is
* either called multiple times or calls multiple times.
*/
if (n->func == f)
n->remove();
if (node->func == f)
node->remove();
}
}