diff options
| author | Kostya Serebryany <kcc@google.com> | 2019-02-14 01:11:29 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2019-02-14 01:11:29 +0000 |
| commit | debf0af71db5c6d2b758619b985418a219178d3a (patch) | |
| tree | 4888a08e6d0e15d9225127e298a42b84d1d04773 /compiler-rt/lib | |
| parent | 619b6d5378554cdcc2e6311112e3bfef7c169d51 (diff) | |
| download | bcm5719-llvm-debf0af71db5c6d2b758619b985418a219178d3a.tar.gz bcm5719-llvm-debf0af71db5c6d2b758619b985418a219178d3a.zip | |
[libFuzzer] trying to fix the bot (can't reproduce the build failure locally)
llvm-svn: 354000
Diffstat (limited to 'compiler-rt/lib')
| -rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerFork.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerFork.cpp b/compiler-rt/lib/fuzzer/FuzzerFork.cpp index 8584e0b65a8..10fa012fad0 100644 --- a/compiler-rt/lib/fuzzer/FuzzerFork.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerFork.cpp @@ -15,6 +15,7 @@ #include "FuzzerSHA1.h" #include "FuzzerUtil.h" +#include <atomic> #include <mutex> #include <thread> #include <queue> @@ -121,7 +122,7 @@ struct JobQueue { }; void WorkerThread(std::atomic<bool> *Stop, JobQueue *FuzzQ, JobQueue *MergeQ) { - while (!*Stop) { + while (!Stop->load()) { auto Job = FuzzQ->Pop(); // Printf("WorkerThread: job %p\n", Job); if (!Job) { |

