glsl/linker: pass shader_info to analyze_clip_cull_usage directly
[mesa.git] / src / compiler / glsl / opt_dead_code.cpp
index 35601196974aab6b0d50304ceaab15a41e53c68a..1eff3f2fd143c2da2603c0381c5fd6aab80ebe01 100644 (file)
@@ -50,7 +50,6 @@ do_dead_code(exec_list *instructions, bool uniform_locations_assigned)
 
    v.run(instructions);
 
-   struct hash_entry *e;
    hash_table_foreach(v.ht, e) {
       ir_variable_refcount_entry *entry = (ir_variable_refcount_entry *)e->data;
 
@@ -101,7 +100,7 @@ do_dead_code(exec_list *instructions, bool uniform_locations_assigned)
             while (!entry->assign_list.is_empty()) {
                struct assignment_entry *assignment_entry =
                   exec_node_data(struct assignment_entry,
-                                 entry->assign_list.head, link);
+                                 entry->assign_list.get_head_raw(), link);
 
               assignment_entry->assign->remove();