[clang] [ARM64EC] Fix compilation of intrin.h in ARM64EC mode. (PR #87717)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 4 15:00:35 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 eeaaf33fc296d52a28252ba0d6cfe187b7b3412f 4de12f20fe15262a63414c8fe3bcd23b777853b3 -- clang/lib/Headers/intrin.h clang/lib/Headers/intrin0.h clang/test/Headers/ms-intrin.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Headers/intrin.h b/clang/lib/Headers/intrin.h
index 40073b4a9f..e890dcd7fe 100644
--- a/clang/lib/Headers/intrin.h
+++ b/clang/lib/Headers/intrin.h
@@ -384,7 +384,7 @@ void __cdecl __prefetch(void *);
/*----------------------------------------------------------------------------*\
|* Privileged intrinsics
\*----------------------------------------------------------------------------*/
-#if defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__))
+#if defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__))
static __inline__ unsigned __int64 __DEFAULT_FN_ATTRS
__readmsr(unsigned long __register) {
// Loads the contents of a 64-bit model specific register (MSR) specified in
``````````
</details>
https://github.com/llvm/llvm-project/pull/87717
More information about the cfe-commits
mailing list