new_loop->body_instructions.push_tail(ir->clone(mem_ctx, ht));
}
+ new_loop->cmp = this->cmp;
return new_loop;
}
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) {
new(mem_ctx) ir_function_signature(this->return_type);
copy->is_defined = this->is_defined;
- copy->is_built_in = this->is_built_in;
+ copy->is_builtin = this->is_builtin;
/* Clone the parameter list.
*/
}
default:
- assert(!"Should not get here."); break;
+ assert(!"Should not get here.");
return NULL;
}
}