r325241 - Adding msan support for FreeBSD

Kamil Rytarowski via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 06:19:23 PST 2018


Author: kamil
Date: Thu Feb 15 06:19:23 2018
New Revision: 325241

URL: http://llvm.org/viewvc/llvm-project?rev=325241&view=rev
Log:
Adding msan support for FreeBSD

Summary: Enabling memory sanitiser for X86_64 arch only. To match the sanitiser counterpart.

Patch by: David CARLIER

Reviewers: krytarowski

Reviewed By: krytarowski

Subscribers: dim, emaste, cfe-commits

Differential Revision: https://reviews.llvm.org/D43148

Modified:
    cfe/trunk/lib/Driver/ToolChains/FreeBSD.cpp

Modified: cfe/trunk/lib/Driver/ToolChains/FreeBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/FreeBSD.cpp?rev=325241&r1=325240&r2=325241&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/FreeBSD.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/FreeBSD.cpp Thu Feb 15 06:19:23 2018
@@ -424,5 +424,7 @@ SanitizerMask FreeBSD::getSupportedSanit
     Res |= SanitizerKind::Fuzzer;
     Res |= SanitizerKind::FuzzerNoLink;
   }
+  if (IsX86_64)
+    Res |= SanitizerKind::Memory;
   return Res;
 }




More information about the cfe-commits mailing list