[PATCH] D36378: Enable LLVM asan support for NetBSD/i386
Kamil Rytarowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 6 08:00:55 PDT 2017
krytarowski created this revision.
krytarowski added a project: Sanitizers.
Verified to work and useful to run check-asan, as this target tests 32-bit and 64-bit execution.
Sponsored by <The NetBSD Foundation>
Repository:
rL LLVM
https://reviews.llvm.org/D36378
Files:
lib/Driver/ToolChains/NetBSD.cpp
Index: lib/Driver/ToolChains/NetBSD.cpp
===================================================================
--- lib/Driver/ToolChains/NetBSD.cpp
+++ lib/Driver/ToolChains/NetBSD.cpp
@@ -417,9 +417,10 @@
}
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36378.109924.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170806/b38ddf52/attachment.bin>
More information about the cfe-commits
mailing list