mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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:
parent
2db5398449
commit
9753ee3f3e
1 changed files with 3 additions and 0 deletions
|
|
@ -141,6 +141,9 @@ ir_loop::clone(void *mem_ctx, struct hash_table *ht) const
|
||||||
ir_call *
|
ir_call *
|
||||||
ir_call::clone(void *mem_ctx, struct hash_table *ht) const
|
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;
|
exec_list new_parameters;
|
||||||
|
|
||||||
foreach_iter(exec_list_iterator, iter, this->actual_parameters) {
|
foreach_iter(exec_list_iterator, iter, this->actual_parameters) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue