gallium/radeon: Silence possibly uninitialized variable warning.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 21 Apr 2016 11:23:36 +0000 (13:23 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 21 Apr 2016 11:40:47 +0000 (13:40 +0200)
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_llvm_emit.c

index 71741325af0006fd15efcfce476f84fe5d50f976..d3f5ae3fab650278a1d3a5027d86741bd2c460a0 100644 (file)
@@ -100,7 +100,7 @@ void radeon_llvm_shader_type(LLVMValueRef F, unsigned type)
                calling_conv = RADEON_LLVM_AMDGPU_CS;
                break;
        default:
-               assert(0);
+               unreachable("Unhandle shader type");
        }
 
        if (HAVE_LLVM >= 0x309)