[PATCH] D42275: [Fuchsia] Enable Fuzzer as a supported sanitizer on Fuchsia

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 17:31:01 PST 2018

phosek created this revision.
phosek added reviewers: aarongreen, mcgrathr, jakehehrlich, kcc.
Herald added a subscriber: cfe-commits.

libFuzzer has been ported to Fuchsia so enable it in the driver.

  rC Clang



Index: lib/Driver/ToolChains/Fuchsia.cpp
--- lib/Driver/ToolChains/Fuchsia.cpp
+++ lib/Driver/ToolChains/Fuchsia.cpp
@@ -278,8 +278,9 @@
 SanitizerMask Fuchsia::getSupportedSanitizers() const {
   SanitizerMask Res = ToolChain::getSupportedSanitizers();
-  Res |= SanitizerKind::SafeStack;
   Res |= SanitizerKind::Address;
+  Res |= SanitizerKind::Fuzzer;
+  Res |= SanitizerKind::SafeStack;
   Res |= SanitizerKind::Scudo;
   return Res;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42275.130525.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180119/4d20f41e/attachment-0001.bin>

More information about the cfe-commits mailing list