]> granicus.if.org Git - clang/commitdiff
Revert "[SanitizeCoverage] Enable stack-depth coverage for -fsanitize=fuzzer"
authorMatt Morehouse <mascasa@google.com>
Tue, 29 Aug 2017 21:56:56 +0000 (21:56 +0000)
committerMatt Morehouse <mascasa@google.com>
Tue, 29 Aug 2017 21:56:56 +0000 (21:56 +0000)
This reverts r312026 due to bot breakage.

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

lib/Driver/SanitizerArgs.cpp

index a2a1373c8d8411da643305d9effcae987adc2b32..466b18e0f6a5b7a7cfce9116e716b833496c704d 100644 (file)
@@ -312,13 +312,9 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
         Add |= FuzzerNoLink;
 
       // Enable coverage if the fuzzing flag is set.
-      if (Add & FuzzerNoLink) {
+      if (Add & FuzzerNoLink)
         CoverageFeatures |= CoverageTracePCGuard | CoverageIndirCall |
                             CoverageTraceCmp | CoveragePCTable;
-        // Due to TLS differences, stack depth tracking is disabled on Mac.
-        if (!TC.getTriple().isOSDarwin())
-          CoverageFeatures |= CoverageStackDepth;
-      }
 
       Kinds |= Add;
     } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) {