mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 22:50:08 +01: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::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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue