This revision was automatically updated to reflect the committed changes. Closed by commit rL304538: Avoid calling report_fatal_error in the destructor of raw_fd_ostream (authored by arphaman).
Changed prior to commit: https://reviews.llvm.org/D33357?vs=99904&id=101182#toc Repository: rL LLVM https://reviews.llvm.org/D33357 Files: cfe/trunk/lib/Serialization/ASTReader.cpp Index: cfe/trunk/lib/Serialization/ASTReader.cpp =================================================================== --- cfe/trunk/lib/Serialization/ASTReader.cpp +++ cfe/trunk/lib/Serialization/ASTReader.cpp @@ -3697,6 +3697,8 @@ if (EC) return; OS << "Timestamp file\n"; + OS.close(); + OS.clear_error(); // Avoid triggering a fatal error. } /// \brief Given a cursor at the start of an AST file, scan ahead and drop the
Index: cfe/trunk/lib/Serialization/ASTReader.cpp =================================================================== --- cfe/trunk/lib/Serialization/ASTReader.cpp +++ cfe/trunk/lib/Serialization/ASTReader.cpp @@ -3697,6 +3697,8 @@ if (EC) return; OS << "Timestamp file\n"; + OS.close(); + OS.clear_error(); // Avoid triggering a fatal error. } /// \brief Given a cursor at the start of an AST file, scan ahead and drop the
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits