[PATCH] D16645: ELF: Report multiple errors from the driver.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 17:55:25 PST 2016

ruiu added inline comments.

Comment at: ELF/Driver.cpp:68
@@ -65,2 +67,3 @@
   ErrorOr<std::unique_ptr<Archive>> FileOrErr = Archive::create(MB);
-  fatal(FileOrErr, "Failed to parse archive");
+  if (error(FileOrErr, "Failed to parse archive"))
+    return {};
rafael wrote:
> This is a broken file case, I would leave it for another patch.
Fair. Done.


More information about the llvm-commits mailing list