[llvm] [Offload] define MSVC byte-order macros for rtl endianness checks (PR #202540)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 01:19:20 PDT 2026
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 cpp -- offload/plugins-nextgen/host/src/rtl.cpp --diff_from_common_commit
``````````
: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/offload/plugins-nextgen/host/src/rtl.cpp b/offload/plugins-nextgen/host/src/rtl.cpp
index 7c1ab14b7..136c43811 100644
--- a/offload/plugins-nextgen/host/src/rtl.cpp
+++ b/offload/plugins-nextgen/host/src/rtl.cpp
@@ -53,8 +53,7 @@ using llvm::endianness;
using llvm::sys::DynamicLibrary;
using namespace error;
-constexpr bool IsLittleEndianHost =
- endianness::native == endianness::little;
+constexpr bool IsLittleEndianHost = endianness::native == endianness::little;
/// Class implementing kernel functionalities for GenELF64.
struct GenELF64KernelTy : public GenericKernelTy {
``````````
</details>
https://github.com/llvm/llvm-project/pull/202540
More information about the llvm-commits
mailing list