Mesa (master): gallium: use unreachable instead of asserts
Ian Romanick
idr at kemper.freedesktop.org
Mon Apr 25 10:24:06 UTC 2016
Module: Mesa
Branch: master
Commit: dc732a8ef29dd2308a435cb7827c00be6d37fb5b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc732a8ef29dd2308a435cb7827c00be6d37fb5b
Author: Grazvydas Ignotas <notasas at gmail.com>
Date: Sat Apr 16 04:00:16 2016 +0300
gallium: use unreachable instead of asserts
Avoids warnings in release builds.
Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
---
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 e153389..f806503 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) {
More information about the mesa-commit
mailing list