Skip to content

Commit

Permalink
[lldb] Update File to new Status API
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-prantl committed Aug 27, 2024
1 parent c2cac7e commit d48b0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Host/common/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d48b0f8

Please sign in to comment.