Skip to content

Commit

Permalink
Fix compilation error in ObjectFileMachO::ParseSymtab
Browse files Browse the repository at this point in the history
  • Loading branch information
vedantk committed Oct 25, 2019
1 parent 3dd0a89 commit 72105b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2737,9 +2737,12 @@ size_t ObjectFileMachO::ParseSymtab() {
nlist_index++) {
/////////////////////////////
{
struct nlist_64 nlist;
if (!ParseNList(dsc_local_symbols_data, nlist_data_offset, nlist_byte_size, nlist)
llvm::Optional<struct nlist_64> nlist_maybe =
ParseNList(dsc_local_symbols_data, nlist_data_offset,
nlist_byte_size);
if (!nlist_maybe)
break;
struct nlist_64 nlist = *nlist_maybe;

SymbolType type = eSymbolTypeInvalid;
const char *symbol_name = dsc_local_symbols_data.PeekCStr(
Expand Down

0 comments on commit 72105b9

Please sign in to comment.