mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 13:51:37 +00:00
Revert r338027 to pacify build bot
llvm-svn: 338035
This commit is contained in:
parent
8fc32bf8f9
commit
97ddfaa7f7
@ -613,10 +613,10 @@ void raw_fd_ostream::write_impl(const char *Ptr, size_t Size) {
|
||||
assert(FD >= 0 && "File already closed.");
|
||||
pos += Size;
|
||||
|
||||
// The maximum write size is limited to INT32_MAX. A write
|
||||
// greater than SSIZE_MAX is implementation-defined in POSIX,
|
||||
// and Windows _write requires 32 bit input.
|
||||
size_t MaxWriteSize = INT32_MAX;
|
||||
// The maximum write size is limited to SSIZE_MAX because a write
|
||||
// greater than SSIZE_MAX is implementation-defined in POSIX.
|
||||
// Since SSIZE_MAX is not portable, we use SIZE_MAX >> 1 instead.
|
||||
size_t MaxWriteSize = SIZE_MAX >> 1;
|
||||
|
||||
#if defined(__linux__)
|
||||
// It is observed that Linux returns EINVAL for a very large write (>2G).
|
||||
|
Loading…
Reference in New Issue
Block a user