[llvm] r370474 - [llvm-nm] Small fix to Exected<StringRef>
Sid Manning via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 07:12:04 PDT 2019
Author: sidneym
Date: Fri Aug 30 07:12:04 2019
New Revision: 370474
URL: http://llvm.org/viewvc/llvm-project?rev=370474&view=rev
Log:
[llvm-nm] Small fix to Exected<StringRef>
Differential Revision: https://reviews.llvm.org/D66976
Modified:
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=370474&r1=370473&r2=370474&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Fri Aug 30 07:12:04 2019
@@ -1099,7 +1099,7 @@ static char getNMSectionTagAndName(Symbo
Expected<StringRef> NameOrErr = (*SecIOrErr)->getName();
if (!NameOrErr) {
- consumeError(SecIOrErr.takeError());
+ consumeError(NameOrErr.takeError());
return '?';
}
SecName = *NameOrErr;
More information about the llvm-commits
mailing list