From: Matt Turner Date: Sat, 29 Jun 2013 22:32:09 +0000 (-0700) Subject: glsl: Add missing return error_value(ctx) in error path. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9749d96817d9ab98567155dd3598163a7fbf6cb3;p=mesa.git glsl: Add missing return error_value(ctx) in error path. Reviewed-by: Chad Versace Reviewed-by: Ian Romanick --- diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 00e0c05dddc..08602385434 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -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.