diff options
author | Jason Molenda <jason@molenda.com> | 2022-10-27 13:11:20 -0700 |
---|---|---|
committer | Jason Molenda <jason@molenda.com> | 2022-10-27 13:11:20 -0700 |
commit | d40f4636c454cf278b390b6591bf1e8dde8252aa (patch) | |
tree | 2ae93d46c2e9b1fecebf0ddb1a314051678bacd5 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 488cf1038c88a6d7e5378d493a253e1dc6a97cd9 (diff) | |
download | llvm-d40f4636c454cf278b390b6591bf1e8dde8252aa.zip llvm-d40f4636c454cf278b390b6591bf1e8dde8252aa.tar.gz llvm-d40f4636c454cf278b390b6591bf1e8dde8252aa.tar.bz2 |
Handle an unknown binary platform type in debugserver
debugserver parses the Mach-O header & load commands of
binaries; if it does this with a binary whose LC_BUILD
platform enum it does not recognize, it will currently crash.
This patch changes MachProcss::GetPlatformString to return
an optional platform string, and updates the callers to
do the right thing when this optional could not be
provided.
Differential Revision: https://reviews.llvm.org/D136719
rdar://100452994
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions