aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/llvm
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-11-08 14:12:58 +0100
committerSamuel Pitoiset <[email protected]>2019-11-19 18:01:13 +0000
commit204cf54b70d5a711ab3a18bbcf7fcd169dc34a83 (patch)
treef4e67154d72d6ee74a59eb3596d1a691755a8ee2 /src/amd/llvm
parent194bee193c547912561259d7ad2e3f0ab0363d1d (diff)
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 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/llvm')
-rw-r--r--src/amd/llvm/ac_llvm_build.c3
1 files changed, 2 insertions, 1 deletions
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