Skip to content

Commit 18e06e3

Browse files
committed
[sanitizers] Fix building on 32 bit Windows after 7256c05
On 32 bit, 'long' (which is 32 bit on Windows) is used as base type for SIZE_T and similar. Differential Revision: https://reviews.llvm.org/D108191
1 parent 50c1138 commit 18e06e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ namespace __sanitizer {
139139
typedef unsigned long long uptr;
140140
typedef signed long long sptr;
141141
#else
142-
# if (SANITIZER_WORDSIZE == 64) || SANITIZER_MAC
142+
# if (SANITIZER_WORDSIZE == 64) || SANITIZER_MAC || SANITIZER_WINDOWS
143143
typedef unsigned long uptr;
144144
typedef signed long sptr;
145145
# else

0 commit comments

Comments
 (0)