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:
Eric Engestrom 2023-04-17 13:01:17 +01:00 committed by Eric Engestrom
parent 0a0822e601
commit f2911b79e5
2 changed files with 2 additions and 2 deletions

View file

@ -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
},

View file

@ -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);