summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-09-19 20:32:34 +0000
committerKostya Serebryany <kcc@google.com>2016-09-19 20:32:34 +0000
commit3750c04f7e956bb24452556ca42ab3e2942a5b00 (patch)
treeee9d381d835b440383f1240b8d7f0180c6825309 /llvm/lib
parentcaa6024303ffd55cd9a457f7f7d46904ee3b720b (diff)
downloadbcm5719-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.cpp2
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(); }
OpenPOWER on IntegriCloud