From 9749d96817d9ab98567155dd3598163a7fbf6cb3 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 29 Jun 2013 15:32:09 -0700 Subject: [PATCH] glsl: Add missing return error_value(ctx) in error path. Reviewed-by: Chad Versace Reviewed-by: Ian Romanick --- src/glsl/ast_function.cpp | 1 + 1 file changed, 1 insertion(+) 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. -- 2.30.2