diff options
| author | Alexey Samsonov <samsonov@google.com> | 2012-09-24 11:43:40 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2012-09-24 11:43:40 +0000 |
| commit | b46941a1d23012491a7a8a52718cacbde3c19ba1 (patch) | |
| tree | 3f7b5776b228f5bd3b21cf8880c1443ef1d34368 /include | |
| parent | c6439621280cda29433eeed5abb62ed9833ba45a (diff) | |
| download | compiler-rt-b46941a1d23012491a7a8a52718cacbde3c19ba1.tar.gz compiler-rt-b46941a1d23012491a7a8a52718cacbde3c19ba1.tar.bz2 compiler-rt-b46941a1d23012491a7a8a52718cacbde3c19ba1.tar.xz | |
[ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/sanitizer/common_interface_defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index 1aa4f0b7..cbce63f1 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -40,8 +40,14 @@ // in a portable way by the language itself. namespace __sanitizer { +#if defined(_WIN64) +// 64-bit Windows uses LLP64 data model. +typedef unsigned long long uptr; // NOLINT +typedef signed long long sptr; // NOLINT +#else typedef unsigned long uptr; // NOLINT typedef signed long sptr; // NOLINT +#endif // defined(_WIN64) typedef unsigned char u8; typedef unsigned short u16; // NOLINT typedef unsigned int u32; |
