gallium: use unreachable instead of asserts
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 16 Apr 2016 01:00:16 +0000 (04:00 +0300)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 25 Apr 2016 10:23:34 +0000 (12:23 +0200)
Avoids warnings in release builds.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/auxiliary/gallivm/lp_bld_intr.c

index e153389e6a9bd0b7041fc0b74a9fbb80b564b908..f806503038dda00c8d336ffbb6656720f9513ae8 100644 (file)
@@ -84,7 +84,7 @@ lp_format_intrinsic(char *name,
       width = 64;
       break;
    default:
-      assert(0);
+      unreachable("unexpected LLVMTypeKind");
    }
 
    if (length) {