summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2cec3e9)
raw | patch | inline | side by side (parent: 2cec3e9)
author | Timur Iskhodzhanov <timurrrr@google.com> | |
Mon, 12 Jan 2015 17:38:58 +0000 (17:38 +0000) | ||
committer | Timur Iskhodzhanov <timurrrr@google.com> | |
Mon, 12 Jan 2015 17:38:58 +0000 (17:38 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225641 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp | patch | blob | history |
diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 57665cb96766b22993f6a8a4e27970667bf71021..745c85a98e2f18245db17c742d37dc242db3820d 100644 (file)
static const uint64_t kMIPS64_ShadowOffset64 = 1ULL << 36;
static const uint64_t kFreeBSD_ShadowOffset32 = 1ULL << 30;
static const uint64_t kFreeBSD_ShadowOffset64 = 1ULL << 46;
+static const uint64_t kWindowsShadowOffset32 = 1ULL << 30;
static const size_t kMinStackMallocSize = 1 << 6; // 64B
static const size_t kMaxStackMallocSize = 1 << 16; // 64K
TargetTriple.getArch() == llvm::Triple::mipsel;
bool IsMIPS64 = TargetTriple.getArch() == llvm::Triple::mips64 ||
TargetTriple.getArch() == llvm::Triple::mips64el;
+ bool IsWindows = TargetTriple.isOSWindows();
ShadowMapping Mapping;
Mapping.Offset = kFreeBSD_ShadowOffset32;
else if (IsIOS)
Mapping.Offset = kIOSShadowOffset32;
+ else if (IsWindows)
+ Mapping.Offset = kWindowsShadowOffset32;
else
Mapping.Offset = kDefaultShadowOffset32;
} else { // LongSize == 64