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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp
index b3442770f01..ba581ae4168 100644
--- a/lldb/source/Host/common/FileSystem.cpp
+++ b/lldb/source/Host/common/FileSystem.cpp
@@ -435,7 +435,8 @@ Expected<FileUP> FileSystem::Open(const FileSpec &file_spec, uint32_t options,
return llvm::errorCodeToError(
std::error_code(errno, std::system_category()));
- auto file = std::make_unique<File>(descriptor, options, should_close_fd);
+ auto file = std::unique_ptr<File>(
+ new NativeFile(descriptor, options, should_close_fd));
assert(file->IsValid());
return std::move(file);
}
OpenPOWER on IntegriCloud