[llvm-commits] [llvm] r104959 - /llvm/trunk/lib/Support/raw_ostream.cpp
Dan Gohman
gohman at apple.com
Fri May 28 09:50:24 PDT 2010
Author: djg
Date: Fri May 28 11:50:23 2010
New Revision: 104959
URL: http://llvm.org/viewvc/llvm-project?rev=104959&view=rev
Log:
Minor code simplification.
Modified:
llvm/trunk/lib/Support/raw_ostream.cpp
Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=104959&r1=104958&r2=104959&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Fri May 28 11:50:23 2010
@@ -427,10 +427,9 @@
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.
More information about the llvm-commits
mailing list