summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Fuzzer/FuzzerIO.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerIO.cpp b/llvm/lib/Fuzzer/FuzzerIO.cpp
index a68c6c579bf..b6ffb752de3 100644
--- a/llvm/lib/Fuzzer/FuzzerIO.cpp
+++ b/llvm/lib/Fuzzer/FuzzerIO.cpp
@@ -21,10 +21,8 @@ namespace fuzzer {
static long GetEpoch(const std::string &Path) {
struct stat St;
- if (stat(Path.c_str(), &St)) {
- Printf("Can not stat: %s; exiting\n", Path.c_str());
- exit(1);
- }
+ if (stat(Path.c_str(), &St))
+ return 0; // Can't stat, be conservative.
return St.st_mtime;
}
OpenPOWER on IntegriCloud