[clang] [ARM64EC] Fix compilation of intrin.h in ARM64EC mode. (PR #87717)
Max Winkler via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 4 17:36:36 PDT 2024
================
@@ -413,6 +413,7 @@ static __inline__ void __DEFAULT_FN_ATTRS
__writecr3(unsigned __INTPTR_TYPE__ __cr3_val) {
__asm__ ("mov {%0, %%cr3|cr3, %0}" : : "r"(__cr3_val) : "memory");
}
+#endif
----------------
MaxEW707 wrote:
Nice catch. We should probably also ifdef these function declarations near the top of this file.
https://github.com/llvm/llvm-project/blob/main/clang/lib/Headers/intrin.h#L96
https://github.com/llvm/llvm-project/blob/main/clang/lib/Headers/intrin.h#L126
https://github.com/llvm/llvm-project/pull/87717
More information about the cfe-commits
mailing list