diff options
-rw-r--r-- | src/glsl/ir_clone.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp index aa84cf05725..18543a35aa1 100644 --- a/src/glsl/ir_clone.cpp +++ b/src/glsl/ir_clone.cpp @@ -141,6 +141,9 @@ ir_loop::clone(void *mem_ctx, struct hash_table *ht) const ir_call * ir_call::clone(void *mem_ctx, struct hash_table *ht) const { + if (this->type == glsl_type::error_type) + return ir_call::get_error_instruction(mem_ctx); + exec_list new_parameters; foreach_iter(exec_list_iterator, iter, this->actual_parameters) { |