From: Samuel Pitoiset Date: Fri, 8 Nov 2019 13:12:58 +0000 (+0100) Subject: ac: remove useless cast in ac_build_set_inactive() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=204cf54b70d5a711ab3a18bbcf7fcd169dc34a83;p=mesa.git ac: remove useless cast in ac_build_set_inactive() The return type is always the src type (32 or 64 bits). Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 4515f696e74..8137713d086 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -3864,7 +3864,8 @@ ac_build_set_inactive(struct ac_llvm_context *ctx, LLVMValueRef src, src, inactive }, 2, AC_FUNC_ATTR_READNONE | AC_FUNC_ATTR_CONVERGENT); - return LLVMBuildBitCast(ctx->builder, ret, src_type, ""); + + return ret; } static LLVMValueRef