X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=hir_field_selection.cpp;h=17c3f5c5ba359b680544f9b04c2ecf09ce2ed071;hb=40176e249f72b6090204611873b19aed3da67c71;hp=76c48683619f93bc7b81ec3c606a49fab37dd757;hpb=affc1413ac9f1f077a4ba1a1b7135f73d7a71167;p=mesa.git diff --git a/hir_field_selection.cpp b/hir_field_selection.cpp index 76c48683619..17c3f5c5ba3 100644 --- a/hir_field_selection.cpp +++ b/hir_field_selection.cpp @@ -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,