glsl: silence warning about unhandled ast_unsized_array_dim case in switch
authorBrian Paul <brianp@vmware.com>
Thu, 15 Oct 2015 13:26:49 +0000 (07:26 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 16 Oct 2015 17:34:05 +0000 (11:34 -0600)
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/glsl/ast_to_hir.cpp

index cd40fe3..ede02d9 100644 (file)
@@ -2017,6 +2017,9 @@ ast_expression::has_sequence_subexpression() const
 
    case ast_function_call:
       unreachable("should be handled by ast_function_expression::hir");
+
+   case ast_unsized_array_dim:
+      unreachable("ast_unsized_array_dim: Should never get here.");
    }
 
    return false;