[llvm-commits] [llvm] r104881 - /llvm/trunk/utils/FileUpdate/FileUpdate.cpp

Dan Gohman gohman at apple.com
Thu May 27 13:17:28 PDT 2010


Author: djg
Date: Thu May 27 15:17:28 2010
New Revision: 104881

URL: http://llvm.org/viewvc/llvm-project?rev=104881&view=rev
Log:
When handling raw_ostream errors manually, use clear_error() so that
raw_ostream doesn't try to do its own error handling.

Modified:
    llvm/trunk/utils/FileUpdate/FileUpdate.cpp

Modified: llvm/trunk/utils/FileUpdate/FileUpdate.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/FileUpdate/FileUpdate.cpp?rev=104881&r1=104880&r2=104881&view=diff
==============================================================================
--- llvm/trunk/utils/FileUpdate/FileUpdate.cpp (original)
+++ llvm/trunk/utils/FileUpdate/FileUpdate.cpp Thu May 27 15:17:28 2010
@@ -79,6 +79,7 @@
   if (OutStream.has_error()) {
     errs() << argv[0] << ": Could not open output file '"
            << OutputFilename << "': " << ErrorStr << '\n';
+    OutStream.clear_error();
     return 1;
   }
 





More information about the llvm-commits mailing list