summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/FileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/common/FileSystem.cpp')
-rw-r--r--lldb/source/Host/common/FileSystem.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp
index 0d9417120fd..23b3ebb0b4f 100644
--- a/lldb/source/Host/common/FileSystem.cpp
+++ b/lldb/source/Host/common/FileSystem.cpp
@@ -436,11 +436,10 @@ Status FileSystem::Open(File &File, const FileSpec &file_spec, uint32_t options,
Status error;
if (!File::DescriptorIsValid(descriptor)) {
- File.SetDescriptor(descriptor, false);
+ File.SetDescriptor(-1, options, false);
error.SetErrorToErrno();
} else {
- File.SetDescriptor(descriptor, should_close_fd);
- File.SetOptions(options);
+ File.SetDescriptor(descriptor, options, should_close_fd);
}
return error;
}
OpenPOWER on IntegriCloud