Suggested-by: Nicolai Hähnle <nhaehnle@gmail.com>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
#include "ir.h"
#include "ir_hierarchical_visitor.h"
#include "util/hash_table.h"
+#include "util/macros.h"
#include "util/set.h"
#include "compiler/glsl_types.h"
_mesa_set_add(ir_set, ir);
}
-#ifdef DEBUG
-static void
+MAYBE_UNUSED static void
check_node_type(ir_instruction *ir, void *data)
{
(void) data;
if (value != NULL)
assert(value->type != glsl_type::error_type);
}
-#endif
void
validate_ir_tree(exec_list *instructions)