[compiler-rt] fix window i386 regression (PR #73650)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 06:17:01 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Farzon Lotfi (farzonl)
<details>
<summary>Changes</summary>
This change makes x64 enablement case explicit.
---
Full diff: https://github.com/llvm/llvm-project/pull/73650.diff
1 Files Affected:
- (modified) compiler-rt/lib/sanitizer_common/sanitizer_platform.h (+1-1)
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index 49d8a67cc12db3f..e816702ce582e7c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -263,7 +263,7 @@
#if SANITIZER_WINDOWS64 && SANITIZER_ARM64
# define SANITIZER_WINDOWS_ARM64 1
# define SANITIZER_WINDOWS_x64 0
-#else
+#if SANITIZER_WINDOWS64 && !SANITIZER_ARM64
# define SANITIZER_WINDOWS_ARM64 0
# define SANITIZER_WINDOWS_x64 1
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/73650
More information about the llvm-commits
mailing list