glsl: fix the type of ir_constant_data::u16
[mesa.git] / src / compiler / glsl / ir_function_detect_recursion.cpp
index 38e4357eff9138b638f0df65c9460362133c011b..4a774f666c9a6e39919cc735c053e0cb789c4398 100644 (file)
  *
  * \author Ian Romanick <ian.d.romanick@intel.com>
  */
-#include "main/core.h"
 #include "ir.h"
 #include "glsl_parser_extras.h"
 #include "linker.h"
@@ -159,8 +158,7 @@ public:
    {
       progress = false;
       this->mem_ctx = ralloc_context(NULL);
-      this->function_hash = _mesa_hash_table_create(NULL, _mesa_hash_pointer,
-                                                    _mesa_key_pointer_equal);
+      this->function_hash = _mesa_pointer_hash_table_create(NULL);
    }
 
    ~has_recursion_visitor()