mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ba7f65743
commit
52c239566e
@ -427,10 +427,9 @@ raw_fd_ostream::~raw_fd_ostream() {
|
||||
void raw_fd_ostream::write_impl(const char *Ptr, size_t Size) {
|
||||
assert(FD >= 0 && "File already closed.");
|
||||
pos += Size;
|
||||
ssize_t ret;
|
||||
|
||||
do {
|
||||
ret = ::write(FD, Ptr, Size);
|
||||
ssize_t ret = ::write(FD, Ptr, Size);
|
||||
|
||||
if (ret < 0) {
|
||||
// If it's a recoverable error, swallow it and retry the write.
|
||||
|
Loading…
Reference in New Issue
Block a user