From: Eric Engestrom Date: Mon, 17 Apr 2023 12:01:17 +0000 (+0100) Subject: compiler: fix buggy usage of unreachable() X-Git-Tag: upstream/23.3.3~9869 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5ed1c79ae5d447ab975efe474eaa54899ae16c5;p=platform%2Fupstream%2Fmesa.git compiler: fix buggy usage of unreachable() Cc: mesa-stable Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 1d65cbc..811e295 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -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);