Add missing break statement
[mesa.git] / hir_field_selection.cpp
index 76c48683619f93bc7b81ec3c606a49fab37dd757..17c3f5c5ba359b680544f9b04c2ecf09ce2ed071 100644 (file)
@@ -45,7 +45,7 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
     * being applied.
     */
    YYLTYPE loc = expr->get_location();
-   if (op->type == glsl_error_type) {
+   if (op->type->is_error()) {
       /* silently propagate the error */
    } else if (op->type->is_vector()) {
       ir_swizzle *swiz = ir_swizzle::create(op,