[clang] [llvm] [Android] Drop workarounds for older Android API levels (PR #161893)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 11:36:19 PDT 2025


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 origin/main HEAD --extensions c,h,cpp -- clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Driver/ToolChains/Linux.cpp clang/test/Driver/aarch64-features.c clang/test/Driver/aarch64-fmv.c clang/test/Driver/linux-ld.c llvm/include/llvm/IR/RuntimeLibcalls.h llvm/lib/Target/X86/X86ISelLoweringCall.cpp llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.h b/llvm/include/llvm/IR/RuntimeLibcalls.h
index 7563eb0b6..5ef6f24c2 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.h
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.h
@@ -225,8 +225,7 @@ private:
 
   /// Return true if the target has sincosf/sincos/sincosl functions
   static bool hasSinCos(const Triple &TT) {
-    return TT.isGNUEnvironment() || TT.isOSFuchsia() ||
-           TT.isAndroid();
+    return TT.isGNUEnvironment() || TT.isOSFuchsia() || TT.isAndroid();
   }
 
   static bool hasSinCos_f32_f64(const Triple &TT) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/161893


More information about the llvm-commits mailing list