[compiler-rt] compiler-rt: fix few builtins build warnings. (PR #88991)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 14:40:23 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff c6e01627acf8591830ee1d211cff4d5388095f3d f99a52cae06420758160f1069ea2d9db9b1fbcd1 -- compiler-rt/lib/builtins/fp_add_impl.inc compiler-rt/lib/builtins/fp_fixint_impl.inc compiler-rt/lib/builtins/fp_lib.h compiler-rt/lib/builtins/int_types.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/builtins/fp_fixint_impl.inc b/compiler-rt/lib/builtins/fp_fixint_impl.inc
index 2f2f77ce78..5e894d36a8 100644
--- a/compiler-rt/lib/builtins/fp_fixint_impl.inc
+++ b/compiler-rt/lib/builtins/fp_fixint_impl.inc
@@ -36,5 +36,6 @@ static __inline fixint_t __fixint(fp_t a) {
if (exponent < significandBits)
return (fixint_t)(sign * (significand >> (significandBits - exponent)));
else
- return (fixint_t)(sign * ((fixuint_t)significand << (exponent - significandBits)));
+ return (fixint_t)(sign *
+ ((fixuint_t)significand << (exponent - significandBits)));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/88991
More information about the llvm-commits
mailing list