Index: lib/Fuzzer/FuzzerCorpus.h =================================================================== --- lib/Fuzzer/FuzzerCorpus.h +++ lib/Fuzzer/FuzzerCorpus.h @@ -119,7 +119,7 @@ void DeleteInput(size_t Idx) { InputInfo &II = *Inputs[Idx]; if (!OutputCorpus.empty() && II.MayDeleteFile) - DeleteFile(DirPlusFile(OutputCorpus, Sha1ToString(II.Sha1))); + RemoveFile(DirPlusFile(OutputCorpus, Sha1ToString(II.Sha1))); Unit().swap(II.U); if (FeatureDebug) Printf("EVICTED %zd\n", Idx); Index: lib/Fuzzer/FuzzerIO.h =================================================================== --- lib/Fuzzer/FuzzerIO.h +++ lib/Fuzzer/FuzzerIO.h @@ -57,7 +57,7 @@ int DuplicateFile(int Fd); -void DeleteFile(const std::string &Path); +void RemoveFile(const std::string &Path); } // namespace fuzzer Index: lib/Fuzzer/FuzzerIOPosix.cpp =================================================================== --- lib/Fuzzer/FuzzerIOPosix.cpp +++ lib/Fuzzer/FuzzerIOPosix.cpp @@ -71,7 +71,7 @@ return dup(Fd); } -void DeleteFile(const std::string &Path) { +void RemoveFile(const std::string &Path) { unlink(Path.c_str()); } Index: lib/Fuzzer/FuzzerIOWindows.cpp =================================================================== --- lib/Fuzzer/FuzzerIOWindows.cpp +++ lib/Fuzzer/FuzzerIOWindows.cpp @@ -136,7 +136,7 @@ return _dup(Fd); } -void DeleteFile(const std::string &Path) { +void RemoveFile(const std::string &Path) { _unlink(Path.c_str()); }