[PATCH] D108191: [sanitizers] Fix building on 32 bit Windows after 7256c05ecb7
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 17 00:38:44 PDT 2021
mstorsjo created this revision.
mstorsjo added a reviewer: vitalybuka.
mstorsjo requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
On 32 bit, 'long' (which is 32 bit on Windows) is used as base
type for SIZE_T and similar.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108191
Files:
compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
Index: compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
+++ compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
@@ -139,7 +139,7 @@
typedef unsigned long long uptr;
typedef signed long long sptr;
#else
-# if (SANITIZER_WORDSIZE == 64) || SANITIZER_MAC
+# if (SANITIZER_WORDSIZE == 64) || SANITIZER_MAC || SANITIZER_WINDOWS
typedef unsigned long uptr;
typedef signed long sptr;
# else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108191.366821.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210817/39bc64ac/attachment.bin>
More information about the llvm-commits
mailing list