Mesa (master): ac: remove useless cast in ac_build_set_inactive()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 19 18:01:47 UTC 2019
Module: Mesa
Branch: master
Commit: 204cf54b70d5a711ab3a18bbcf7fcd169dc34a83
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=204cf54b70d5a711ab3a18bbcf7fcd169dc34a83
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Fri Nov 8 14:12:58 2019 +0100
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 <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/llvm/ac_llvm_build.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
More information about the mesa-commit
mailing list