From: Grazvydas Ignotas Date: Sat, 16 Apr 2016 01:00:16 +0000 (+0300) Subject: gallium: use unreachable instead of asserts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc732a8ef29dd2308a435cb7827c00be6d37fb5b;p=mesa.git gallium: use unreachable instead of asserts Avoids warnings in release builds. Signed-off-by: Grazvydas Ignotas Reviewed-by: Emil Velikov --- 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) {