diff options
| author | Kamil Rytarowski <n54@gmx.com> | 2017-08-07 10:57:03 +0000 |
|---|---|---|
| committer | Kamil Rytarowski <n54@gmx.com> | 2017-08-07 10:57:03 +0000 |
| commit | 9d1f5dc37b8470825e8d224c80a9357bfd88fed3 (patch) | |
| tree | c46c20003518f537648f17d82e10c9fc63be657c | |
| parent | bdd455f0d5fbe36eaaf6ac8160349bbb28d82df7 (diff) | |
| download | bcm5719-llvm-9d1f5dc37b8470825e8d224c80a9357bfd88fed3.tar.gz bcm5719-llvm-9d1f5dc37b8470825e8d224c80a9357bfd88fed3.zip | |
Enable LLVM asan support for NetBSD/i386
Summary:
Verified to work and useful to run check-asan, as this target tests 32-bit and 64-bit execution.
Sponsored by <The NetBSD Foundation>
Reviewers: joerg, filcab, dim, vitalybuka
Reviewed By: vitalybuka
Subscribers: #sanitizers, cfe-commits
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D36378
llvm-svn: 310245
| -rw-r--r-- | clang/lib/Driver/ToolChains/NetBSD.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/NetBSD.cpp b/clang/lib/Driver/ToolChains/NetBSD.cpp index acc56278f3d..e8db333a4c1 100644 --- a/clang/lib/Driver/ToolChains/NetBSD.cpp +++ b/clang/lib/Driver/ToolChains/NetBSD.cpp @@ -417,9 +417,10 @@ void NetBSD::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, } SanitizerMask NetBSD::getSupportedSanitizers() const { + const bool IsX86 = getTriple().getArch() == llvm::Triple::x86; const bool IsX86_64 = getTriple().getArch() == llvm::Triple::x86_64; SanitizerMask Res = ToolChain::getSupportedSanitizers(); - if (IsX86_64) { + if (IsX86 || IsX86_64) { Res |= SanitizerKind::Address; } return Res; |

