mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
ir_to_mesa: Fix up handling of void function returns.
void functions have a type of glsl_type::void_type, not a null type.
This commit is contained in:
parent
c91809e1e4
commit
576d01ad8c
1 changed files with 1 additions and 1 deletions
|
|
@ -1501,7 +1501,7 @@ ir_to_mesa_visitor::get_function_signature(ir_function_signature *sig)
|
|||
break;
|
||||
}
|
||||
|
||||
if (sig->return_type) {
|
||||
if (!sig->return_type->is_void()) {
|
||||
entry->return_reg = get_temp(sig->return_type);
|
||||
} else {
|
||||
entry->return_reg = ir_to_mesa_undef;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue