[Mesa-dev] [PATCH 2/2] gallium/radeon: Silence possibly uninitialized variable warning.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Thu Apr 21 11:28:33 UTC 2016
Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
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 7174132..d3f5ae3 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.8.0
More information about the mesa-dev
mailing list