diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index 6e8f94c6bf8f..941aa2888998 100644 --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/lib/Support/Windows/Signals.inc @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Support/PathV1.h" +#include "llvm/Support/FileSystem.h" #include "Windows.h" #include @@ -354,7 +354,8 @@ static void Cleanup() { if (FilesToRemove != NULL) while (!FilesToRemove->empty()) { - llvm::sys::Path(FilesToRemove->back()).eraseFromDisk(); + bool Existed; + llvm::sys::fs::remove(FilesToRemove->back(), Existed); FilesToRemove->pop_back(); }