glsl: Add missing return error_value(ctx) in error path.
authorMatt Turner <mattst88@gmail.com>
Sat, 29 Jun 2013 22:32:09 +0000 (15:32 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 12 Jul 2013 03:58:58 +0000 (20:58 -0700)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romainck@intel.com>
src/glsl/ast_function.cpp

index 00e0c05dddc0523088edc05935cec83c444fb0aa..086023854349385113d7d3e8f80d3c69c9352f8c 100644 (file)
@@ -690,6 +690,7 @@ process_array_constructor(exec_list *instructions,
                          "expected: %s, found %s",
                          constructor_type->element_type()->name,
                          result->type->name);
+         return ir_rvalue::error_value(ctx);
       }
 
       /* Attempt to convert the parameter to a constant valued expression.