diff options
author | Pavel Labath <labath@google.com> | 2018-06-11 13:30:47 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-06-11 13:30:47 +0000 |
commit | b2c73c4cc0b1b5077029ac6f44e56ed2d9c0b47e (patch) | |
tree | 7548e26bf0fdcd01ec744f19d98f0c29f24427dd /llvm/lib/Support/MemoryBuffer.cpp | |
parent | 08dae4bb3c5b4ec8eff111c1da8cbb980ba479a2 (diff) | |
download | bcm5719-llvm-b2c73c4cc0b1b5077029ac6f44e56ed2d9c0b47e.tar.gz bcm5719-llvm-b2c73c4cc0b1b5077029ac6f44e56ed2d9c0b47e.zip |
Fix build errors on some configurations
It's been reported
<http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20180611/559616.html>
that template argument deduction for RetryAfterSignal fails if open is
not prefixed with "::".
This should help us build correctly on those platforms and explicitly
specifying the namespace is more correct anyway.
llvm-svn: 334403
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/MemoryBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp index d8cc853f2a8..4428c2f24e3 100644 --- a/llvm/lib/Support/MemoryBuffer.cpp +++ b/llvm/lib/Support/MemoryBuffer.cpp @@ -216,7 +216,7 @@ getMemoryBufferForStream(int FD, const Twine &BufferName) { // Read into Buffer until we hit EOF. do { Buffer.reserve(Buffer.size() + ChunkSize); - ReadBytes = sys::RetryAfterSignal(-1, read, FD, Buffer.end(), ChunkSize); + ReadBytes = sys::RetryAfterSignal(-1, ::read, FD, Buffer.end(), ChunkSize); if (ReadBytes == -1) return std::error_code(errno, std::generic_category()); Buffer.set_size(Buffer.size() + ReadBytes); |