[Mesa-dev] [PATCH 2/2] gallium/radeon: Silence possibly uninitialized variable warning.

Marek Olšák maraeo at gmail.com
Thu Apr 21 11:36:38 UTC 2016


For the series:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Apr 21, 2016 at 1:28 PM, Bas Nieuwenhuizen
<bas at basnieuwenhuizen.nl> wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list