Skip to content

Commit 50b9930

Browse files
authored
[asan] Fix Windows i386 regression (#73650)
This change makes x64 enablement case explicit and adds an else case for 32bit which fixes a regression on Windows i386 asan builds introduced by #66973.
1 parent 4667dd6 commit 50b9930

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,12 @@
263263
#if SANITIZER_WINDOWS64 && SANITIZER_ARM64
264264
# define SANITIZER_WINDOWS_ARM64 1
265265
# define SANITIZER_WINDOWS_x64 0
266-
#else
266+
#elif SANITIZER_WINDOWS64 && !SANITIZER_ARM64
267267
# define SANITIZER_WINDOWS_ARM64 0
268268
# define SANITIZER_WINDOWS_x64 1
269+
#else
270+
# define SANITIZER_WINDOWS_ARM64 0
271+
# define SANITIZER_WINDOWS_x64 0
269272
#endif
270273

271274
#if SANITIZER_SOLARIS && SANITIZER_WORDSIZE == 32

0 commit comments

Comments
 (0)