Author: Adrian Prantl Date: 2024-08-27T15:25:32-07:00 New Revision: d48b0f8db8b9414e965a2d7c716e8ac44b2f291e
URL: https://github.com/llvm/llvm-project/commit/d48b0f8db8b9414e965a2d7c716e8ac44b2f291e DIFF: https://github.com/llvm/llvm-project/commit/d48b0f8db8b9414e965a2d7c716e8ac44b2f291e.diff LOG: [lldb] Update File to new Status API Added: Modified: lldb/source/Host/common/File.cpp Removed: ################################################################################ diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index bfeae3c95233d1..9aa95ffda44cba 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -498,7 +498,7 @@ Status NativeFile::Sync() { #ifdef _WIN32 int err = FlushFileBuffers((HANDLE)_get_osfhandle(m_descriptor)); if (err == 0) - error.SetErrorToGenericError(); + error = Status::FromErrorString("unknown error"); #else if (llvm::sys::RetryAfterSignal(-1, ::fsync, m_descriptor) == -1) error = Status::FromErrno(); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits