dri: Get prototype for _mesa_destroy_compiler().
[mesa.git] / src / glsl / ir_validate.cpp
index 6e08fa4025a1609704b841a2e064b04ac03bd4d4..9ea11dd400ec8961e758e4086e4dec4b519bcc49 100644 (file)
@@ -223,6 +223,11 @@ ir_validate::visit_leave(ir_expression *ir)
       assert(ir->type->base_type == GLSL_TYPE_FLOAT);
       break;
 
+   case ir_unop_any:
+      assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL);
+      assert(ir->type == glsl_type::bool_type);
+      break;
+
    case ir_unop_trunc:
    case ir_unop_ceil:
    case ir_unop_floor: