Skip to content

Commit

Permalink
[llvm-nm] Small fix to Exected<StringRef>
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D66976

llvm-svn: 370474
  • Loading branch information
SidManning committed Aug 30, 2019
1 parent 268f45b commit aa0e8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/llvm-nm/llvm-nm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ static char getNMSectionTagAndName(SymbolicFile &Obj, basic_symbol_iterator I,

Expected<StringRef> NameOrErr = (*SecIOrErr)->getName();
if (!NameOrErr) {
consumeError(SecIOrErr.takeError());
consumeError(NameOrErr.takeError());
return '?';
}
SecName = *NameOrErr;
Expand Down

0 comments on commit aa0e8f9

Please sign in to comment.