[lld-macho]Rework error-checking in peeking at first-member in archive to avoid segfault.
Details: calling getMemoryBufferRef() on an empty archive can trigger segfault so the code should check before calling this. this seems like a bug in the Archive API but that can be fixed separately. P.S: follow up to D156468 Differential Revision: https://reviews.llvm.org/D157300
parent
f6ee4e3f
Please register or sign in to comment