[compiler-rt] fix window i386 regression (PR #73650)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 06:16:32 PST 2023


https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/73650

This change makes x64 enablement case explicit.

>From ee22050679917362cf888b457634fc214fe2992f Mon Sep 17 00:00:00 2001
From: Farzon Lotfi <1802579+farzonl at users.noreply.github.com>
Date: Tue, 28 Nov 2023 09:13:22 -0500
Subject: [PATCH] fix window i386 regression

This change makes x64 enablement case explicit.
---
 compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the llvm-commits mailing list