[cfe-commits] r104880 - /cfe/trunk/tools/libclang/CIndexer.cpp

Dan Gohman gohman at apple.com
Thu May 27 13:16:38 PDT 2010


Author: djg
Date: Thu May 27 15:16:37 2010
New Revision: 104880

URL: http://llvm.org/viewvc/llvm-project?rev=104880&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:
    cfe/trunk/tools/libclang/CIndexer.cpp

Modified: cfe/trunk/tools/libclang/CIndexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexer.cpp?rev=104880&r1=104879&r2=104880&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexer.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexer.cpp Thu May 27 15:16:37 2010
@@ -135,6 +135,7 @@
     OS.close();
     if (OS.has_error()) {
       SavedFile.eraseFromDisk();
+      OS.clear_error();
       return true;
     }
     





More information about the cfe-commits mailing list