summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_function.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-06-29 15:32:09 -0700
committerMatt Turner <[email protected]>2013-07-11 20:58:58 -0700
commit9749d96817d9ab98567155dd3598163a7fbf6cb3 (patch)
treef12108a8bb0f2833325b2b231d59cdc43c31db81 /src/glsl/ast_function.cpp
parente117eda2518fe8318cd331fa32bfcbd3acc1e070 (diff)
glsl: Add missing return error_value(ctx) in error path.
Reviewed-by: Chad Versace <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r--src/glsl/ast_function.cpp1
1 files changed, 1 insertions, 0 deletions
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.