mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
compiler: fix buggy usage of unreachable()
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22529>
(cherry picked from commit f5ed1c79ae)
This commit is contained in:
parent
0a0822e601
commit
f2911b79e5
2 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@
|
|||
"description": "compiler: fix buggy usage of unreachable()",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -574,7 +574,7 @@ ir_expression::ir_expression(int op, ir_rvalue *op0, ir_rvalue *op1)
|
|||
base = GLSL_TYPE_UINT64;
|
||||
break;
|
||||
default:
|
||||
unreachable(!"Invalid base type.");
|
||||
unreachable("Invalid base type.");
|
||||
}
|
||||
|
||||
this->type = glsl_type::get_instance(base, op0->type->vector_elements, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue