fix: gallivm: variable ‘type_kind’ set but not used [-Wunused-but-set-variable]

Only used in debug builds.

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18643>
This commit is contained in:
Kai Wasserbäch 2022-09-17 13:39:19 +02:00 committed by Marge Bot
parent 0d46e6803c
commit 0746feaac0

View file

@ -65,7 +65,7 @@ build_binary_int_overflow(struct gallivm_state *gallivm,
LLVMBuilderRef builder = gallivm->builder;
char intr_str[256];
LLVMTypeRef type_ref;
LLVMTypeKind type_kind;
ASSERTED LLVMTypeKind type_kind;
unsigned type_width;
LLVMTypeRef oelems[2];
LLVMValueRef oresult;