[llvm-nm] Small fix to Exected<StringRef>

Differential Revision: https://reviews.llvm.org/D66976

llvm-svn: 370474
This commit is contained in:
Sid Manning 2019-08-30 14:12:04 +00:00
parent fa73d7c8a9
commit 439ff91bbd

View File

@ -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;