r329779 - Adding fuzzer flags support to OpenBSD driver

Dean Michael Berris via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 22:40:48 PDT 2018


Author: dberris
Date: Tue Apr 10 22:40:47 2018
New Revision: 329779

URL: http://llvm.org/viewvc/llvm-project?rev=329779&view=rev
Log:
Adding fuzzer flags support to OpenBSD driver

Summary: - Following-up the sanitizer's part commit https://reviews.llvm.org/rCRT329631, we enable fuzzer flags.

Reviewers: brad, thakis, dberris

Reviewed By: dberris

Subscribers: cfe-commits

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

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

Modified: cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp?rev=329779&r1=329778&r2=329779&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp Tue Apr 10 22:40:47 2018
@@ -241,8 +241,11 @@ SanitizerMask OpenBSD::getSupportedSanit
   // For future use, only UBsan at the moment
   SanitizerMask Res = ToolChain::getSupportedSanitizers();
 
-  if (IsX86 || IsX86_64)
+  if (IsX86 || IsX86_64) {
     Res |= SanitizerKind::Vptr;
+    Res |= SanitizerKind::Fuzzer;
+    Res |= SanitizerKind::FuzzerNoLink;
+  }
 
   return Res;
 }




More information about the cfe-commits mailing list