Skip to content

compiler-rt: fix few builtins build warnings. #88991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

devnexen
Copy link
Member

No description provided.

Copy link

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
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
View the diff from clang-format here.
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)));
 }

@devnexen devnexen requested a review from arichardson April 17, 2024 06:14
@devnexen devnexen merged commit 8482dbd into llvm:main Apr 22, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants