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

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 15:00:18 PST 2016


efriedma added inline comments.


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


Repository:
  rL LLVM

https://reviews.llvm.org/D26371





More information about the llvm-commits mailing list