[PATCH] D26371: [LTO] Add error message on IO error in compileOptimizedToFile.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 14:56:53 PST 2016


mehdi_amini accepted this revision.
mehdi_amini added a comment.

LGTM. Thanks.



================
Comment at: lib/LTO/LTOCodeGenerator.cpp:261
+    std::string ErrMsg = "could not write object file: ";
+    ErrMsg += Filename;
+    emitError(ErrMsg);
----------------
Can you get the ` + Filename` on the same line as the initialization for ErrMsg? 
(Otherwise never mind).



Repository:
  rL LLVM

https://reviews.llvm.org/D26371





More information about the llvm-commits mailing list