[PATCH] D16106: [LTO] Fix error reporting when a file passed to libLTO is invalid or non-existent

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 08:53:41 PST 2016


rafael added a comment.

To test this you should be able to delete the call to error in

  ErrorOr<std::unique_ptr<LTOModule>> ModuleOrErr =
       LTOModule::createFromFile(Context, InputFilenames[i].c_str(), Options);
   error(ModuleOrErr, "error " + CurrentActivity);

in llvm-lto.cpp since now the error will be received via the diagnostic handler.


================
Comment at: tools/lto/lto.cpp:84
@@ -83,3 +83,2 @@
   }
-  sLastErrorString += '\n';
 }
----------------
Is this related?


http://reviews.llvm.org/D16106





More information about the llvm-commits mailing list