We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d791004 commit 945f9cdCopy full SHA for 945f9cd
lldb/source/Host/common/File.cpp
@@ -498,7 +498,7 @@ Status NativeFile::Sync() {
498
#ifdef _WIN32
499
int err = FlushFileBuffers((HANDLE)_get_osfhandle(m_descriptor));
500
if (err == 0)
501
- error.SetErrorToGenericError();
+ error = Status::FromErrorString("unknown error");
502
#else
503
if (llvm::sys::RetryAfterSignal(-1, ::fsync, m_descriptor) == -1)
504
error = Status::FromErrno();
0 commit comments