summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-08-01 22:51:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2018-08-01 22:51:13 +0000
commitc5d7e040522d247e050f04d474f3bb3a1961373a (patch)
tree0521ccbc978501ad281765e89e02276fcbb8c410 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
parentbfea8cdc69ede81340c6aa7690fd1be0f8573ef1 (diff)
downloadbcm5719-llvm-c5d7e040522d247e050f04d474f3bb3a1961373a.tar.gz
bcm5719-llvm-c5d7e040522d247e050f04d474f3bb3a1961373a.zip
[ASAN] Use the correct shadow offset for ASAN on FreeBSD/mips64.
Reviewed By: atanasyan Differential Revision: https://reviews.llvm.org/D49939 llvm-svn: 338650
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 6af44354225..ec72e834059 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -538,7 +538,7 @@ static ShadowMapping getShadowMapping(Triple &TargetTriple, int LongSize,
Mapping.Offset = kPPC64_ShadowOffset64;
else if (IsSystemZ)
Mapping.Offset = kSystemZ_ShadowOffset64;
- else if (IsFreeBSD)
+ else if (IsFreeBSD && !IsMIPS64)
Mapping.Offset = kFreeBSD_ShadowOffset64;
else if (IsNetBSD)
Mapping.Offset = kNetBSD_ShadowOffset64;
OpenPOWER on IntegriCloud