Commit 2d873d5a authored by Vy Nguyen's avatar Vy Nguyen
Browse files

[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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment