glsl2: Fixed cloning of ir_call error instructions.

Those have the callee field set to the null pointer, so
calling the public constructor will segfault.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
(cherry picked from commit 3894fddccc)
This commit is contained in:
Tilman Sauerbeck 2010-09-18 01:56:34 +02:00 committed by Ian Romanick
parent 2db5398449
commit 9753ee3f3e

View file

@ -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) {