]> granicus.if.org Git - clang/commitdiff
Adding fuzzer flags support to OpenBSD driver
authorDean Michael Berris <dberris@google.com>
Wed, 11 Apr 2018 05:40:47 +0000 (05:40 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 11 Apr 2018 05:40:47 +0000 (05:40 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329779 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/OpenBSD.cpp

index 1678247199c6bf153ff9509f65260696d9debc4a..72888b43e69c6514437395bbdcfc4eef48b6b05b 100644 (file)
@@ -241,8 +241,11 @@ SanitizerMask OpenBSD::getSupportedSanitizers() const {
   // 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;
 }