From dc732a8ef29dd2308a435cb7827c00be6d37fb5b Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sat, 16 Apr 2016 04:00:16 +0300 Subject: [PATCH] gallium: use unreachable instead of asserts Avoids warnings in release builds. Signed-off-by: Grazvydas Ignotas Reviewed-by: Emil Velikov --- src/gallium/auxiliary/gallivm/lp_bld_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_intr.c b/src/gallium/auxiliary/gallivm/lp_bld_intr.c index e153389e6a9..f806503038d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_intr.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_intr.c @@ -84,7 +84,7 @@ lp_format_intrinsic(char *name, width = 64; break; default: - assert(0); + unreachable("unexpected LLVMTypeKind"); } if (length) { -- 2.30.2