From 4abe051a3f848af074193140930dab7fdca297bc Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Thu, 21 Apr 2016 13:23:36 +0200 Subject: [PATCH] gallium/radeon: Silence possibly uninitialized variable warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- src/gallium/drivers/radeon/radeon_llvm_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c index 71741325af0..d3f5ae3fab6 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_emit.c +++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c @@ -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) -- 2.30.2