diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc index 357cb2f27eea..ce5fe2a3a5fc 100644 --- a/llvm/lib/System/Win32/Path.inc +++ b/llvm/lib/System/Win32/Path.inc @@ -672,7 +672,7 @@ Path::renamePathOnDisk(const Path& newName, std::string* ErrMsg) { if (!MoveFileEx(path.c_str(), newName.c_str(), MOVEFILE_REPLACE_EXISTING)) return MakeErrMsg(ErrMsg, "Can't move '" + path + "' to '" + newName.path + "': "); - return true; + return false; } bool