[llvm] [llvm-link] Improve missing file error message (PR #82514)

Michael Halkenhäuser via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 13:37:04 PST 2024


================
@@ -393,8 +393,16 @@ static bool linkFiles(const char *argv0, LLVMContext &Context, Linker &L,
   // Similar to some flags, internalization doesn't apply to the first file.
   bool InternalizeLinkedSymbols = false;
   for (const auto &File : Files) {
+    auto ErrOrExpected = MemoryBuffer::getFileOrSTDIN(File);
----------------
mhalk wrote:

Check! I'll keep that in mind and address along with further potential feedback.
(Sorry, did not see this comment at the time of hitting the button.)

https://github.com/llvm/llvm-project/pull/82514


More information about the llvm-commits mailing list