diff options
author | Kostya Serebryany <kcc@google.com> | 2016-12-17 02:03:34 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-12-17 02:03:34 +0000 |
commit | 00e638e64268d62ec4fc209de03ecd5d2e2a586c (patch) | |
tree | f8c865aae1b11b571b5a6e3695f958529c94d455 /llvm/lib/Fuzzer/test/SwitchTest.cpp | |
parent | 95294127d0ef8264274a1cd9767b15295454af63 (diff) | |
download | bcm5719-llvm-00e638e64268d62ec4fc209de03ecd5d2e2a586c.tar.gz bcm5719-llvm-00e638e64268d62ec4fc209de03ecd5d2e2a586c.zip |
[libFuzzer] when tracing switch statements, handle only one case at a time (to make things faster). Also ensure that the signals from value profile do not intersect with the regular coverage
llvm-svn: 290031
Diffstat (limited to 'llvm/lib/Fuzzer/test/SwitchTest.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/test/SwitchTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/test/SwitchTest.cpp b/llvm/lib/Fuzzer/test/SwitchTest.cpp index 3dc051ff7b5..74e86c06cb4 100644 --- a/llvm/lib/Fuzzer/test/SwitchTest.cpp +++ b/llvm/lib/Fuzzer/test/SwitchTest.cpp @@ -20,8 +20,8 @@ bool Switch(const uint8_t *Data, size_t Size) { case 101: Sink = __LINE__; break; case 1001: Sink = __LINE__; break; case 10001: Sink = __LINE__; break; - case 100001: Sink = __LINE__; break; - case 1000001: Sink = __LINE__; break; +// case 100001: Sink = __LINE__; break; +// case 1000001: Sink = __LINE__; break; case 10000001: Sink = __LINE__; break; case 100000001: return true; } |