diff options
author | Yi Kong <yikong@google.com> | 2019-07-23 07:41:17 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-07-23 07:41:17 +0000 |
commit | 78b5e9bc25973f59b4f046b7ec8c26b38e0835cb (patch) | |
tree | da4b2dd78668f4841a38d3bf2fd65dfbcdd7fc4a /llvm/tools | |
parent | ab658f42a739a465f098b20e85a3704769909667 (diff) | |
download | bcm5719-llvm-78b5e9bc25973f59b4f046b7ec8c26b38e0835cb.tar.gz bcm5719-llvm-78b5e9bc25973f59b4f046b7ec8c26b38e0835cb.zip |
Fix gold-plugin Windows build
r365588 missed one instance of integer file descriptor use in
gold-plugin.cpp.
llvm-svn: 366786
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 1cd287cb668..1052c48734d 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -513,8 +513,8 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file, offset = file->offset; } ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = - MemoryBuffer::getOpenFileSlice(file->fd, file->name, file->filesize, - offset); + MemoryBuffer::getOpenFileSlice(sys::fs::convertFDToNativeFile(file->fd), + file->name, file->filesize, offset); if (std::error_code EC = BufferOrErr.getError()) { message(LDPL_ERROR, EC.message().c_str()); return LDPS_ERR; |