r322916 - [Fuchsia] Enable Fuzzer as a supported sanitizer on Fuchsia

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 17:58:26 PST 2018


Author: phosek
Date: Thu Jan 18 17:58:26 2018
New Revision: 322916

URL: http://llvm.org/viewvc/llvm-project?rev=322916&view=rev
Log:
[Fuchsia] Enable Fuzzer as a supported sanitizer on Fuchsia

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

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

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

Modified: cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp?rev=322916&r1=322915&r2=322916&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Fuchsia.cpp Thu Jan 18 17:58:26 2018
@@ -278,8 +278,9 @@ void Fuchsia::AddCXXStdlibLibArgs(const
 
 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;
 }




More information about the cfe-commits mailing list