src/compiler: use new hash table and set creation helpers
[mesa.git] / src / compiler / glsl / ir_clone.cpp
index e1f4f3b2903dd30697a44afb6301abbe956f9b14..c492fdbb3d0254d8a228d1132db31f3a986f6a12 100644 (file)
@@ -419,8 +419,7 @@ fixup_function_calls(struct hash_table *ht, exec_list *instructions)
 void
 clone_ir_list(void *mem_ctx, exec_list *out, const exec_list *in)
 {
-   struct hash_table *ht =
-         _mesa_hash_table_create(NULL, _mesa_hash_pointer, _mesa_key_pointer_equal);
+   struct hash_table *ht = _mesa_pointer_hash_table_create(NULL);
 
    foreach_in_list(const ir_instruction, original, in) {
       ir_instruction *copy = original->clone(mem_ctx, ht);