From 556d1a3b80ddedf8d68bf1293fba755f688e83b7 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Tue, 27 Jan 2015 22:19:55 +0000 Subject: [PATCH] [fuzzer] properly enable asan's coverage feedback git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227254 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Fuzzer/FuzzerMain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Fuzzer/FuzzerMain.cpp b/lib/Fuzzer/FuzzerMain.cpp index 3a4b9c07254..9d4004e951d 100644 --- a/lib/Fuzzer/FuzzerMain.cpp +++ b/lib/Fuzzer/FuzzerMain.cpp @@ -18,7 +18,10 @@ // ASAN options: // * don't dump the coverage to disk. -extern "C" const char* __asan_default_options() { return "coverage_pcs=0"; } +// * enable coverage by default. +extern "C" const char *__asan_default_options() { + return "coverage_pcs=0:coverage=1"; +} // Program arguments. struct FlagDescription {