paulkirth added inline comments.

================
Comment at: lld/ELF/InputFiles.cpp:1721
+    Expected<MemoryBufferRef> fatLTOData = 
IRObjectFile::findBitcodeInMemBuffer(mb);
+    if (!errorToBool(fatLTOData.takeError()))
+      return make<BitcodeFile>(*fatLTOData, archiveName, offsetInArchive, 
/*lazy=*/false);
----------------
Do we just keep going if there's an error? This is only checking if there's 
**not** an error, right? or does `takeError` do more than I remember?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131618/new/

https://reviews.llvm.org/D131618

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to