diff options
| author | Kostya Serebryany <kcc@google.com> | 2016-09-19 20:32:34 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2016-09-19 20:32:34 +0000 |
| commit | 3750c04f7e956bb24452556ca42ab3e2942a5b00 (patch) | |
| tree | ee9d381d835b440383f1240b8d7f0180c6825309 /llvm/lib | |
| parent | caa6024303ffd55cd9a457f7f7d46904ee3b720b (diff) | |
| download | bcm5719-llvm-3750c04f7e956bb24452556ca42ab3e2942a5b00.tar.gz bcm5719-llvm-3750c04f7e956bb24452556ca42ab3e2942a5b00.zip | |
[libFuzzer] use sleep() instead of std::this_thread::sleep_for to avoid coverage from instrumented libc++
llvm-svn: 281933
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerUtil.cpp b/llvm/lib/Fuzzer/FuzzerUtil.cpp index f4c6fa7d0ba..f06060ba8af 100644 --- a/llvm/lib/Fuzzer/FuzzerUtil.cpp +++ b/llvm/lib/Fuzzer/FuzzerUtil.cpp @@ -246,7 +246,7 @@ bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units) { } void SleepSeconds(int Seconds) { - std::this_thread::sleep_for(std::chrono::seconds(Seconds)); + sleep(Seconds); // Use C API to avoid coverage from instrumented libc++. } int GetPid() { return getpid(); } |

