aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorVy Nguyen <vyng@google.com>2023-08-07 13:41:46 -0400
committerVy Nguyen <vyng@google.com>2023-08-09 09:54:32 -0400
commit2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad (patch)
tree24b972bd0be85fd5b1ae73cb1f3e6504e26def96 /clang/lib/Frontend/CompilerInvocation.cpp
parentf6ee4e3f5562acfb11f3c36f555e37246aaeefea (diff)
downloadllvm-2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad.zip
llvm-2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad.tar.gz
llvm-2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad.tar.bz2
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions