[llvm] Object: Don't error out on malformed bitcode files. (PR #96848)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 00:56:55 PDT 2024


================
@@ -1000,7 +1031,8 @@ Expected<std::string> computeArchiveRelativePath(StringRef From, StringRef To) {
 static Error
 writeArchiveToStream(raw_ostream &Out, ArrayRef<NewArchiveMember> NewMembers,
----------------
jh7370 wrote:

Just noting that as of 48 hours ago or so, `writeArchiveToStream` is no longer `static`, so you might want to consider a default value for `Warn` here too (this is entirely up to you of course).

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


More information about the llvm-commits mailing list