[cfe-commits] r134876 - /cfe/trunk/lib/ARCMigrate/FileRemapper.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Sun Jul 10 11:57:18 PDT 2011


Author: akirtzidis
Date: Sun Jul 10 13:57:18 2011
New Revision: 134876

URL: http://llvm.org/viewvc/llvm-project?rev=134876&view=rev
Log:
[arcmt] Remove redundant has_error() check.

Modified:
    cfe/trunk/lib/ARCMigrate/FileRemapper.cpp

Modified: cfe/trunk/lib/ARCMigrate/FileRemapper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/FileRemapper.cpp?rev=134876&r1=134875&r2=134876&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/FileRemapper.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/FileRemapper.cpp Sun Jul 10 13:57:18 2011
@@ -114,7 +114,7 @@
   std::string infoFile = getRemapInfoFile(outputDir);
   llvm::raw_fd_ostream infoOut(infoFile.c_str(), errMsg,
                                llvm::raw_fd_ostream::F_Binary);
-  if (!errMsg.empty() || infoOut.has_error())
+  if (!errMsg.empty())
     return report(errMsg, Diag);
 
   for (MappingsTy::iterator
@@ -184,7 +184,7 @@
       std::string errMsg;
       llvm::raw_fd_ostream Out(origFE->getName(), errMsg,
                                llvm::raw_fd_ostream::F_Binary);
-      if (!errMsg.empty() || Out.has_error())
+      if (!errMsg.empty())
         return report(errMsg, Diag);
 
       llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>();





More information about the cfe-commits mailing list