From: Sid Manning Date: Fri, 30 Aug 2019 14:12:04 +0000 (+0000) Subject: [llvm-nm] Small fix to Exected X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d8753c162af27d0ddb854bf00a7032badc1335a;p=llvm [llvm-nm] Small fix to Exected Differential Revision: https://reviews.llvm.org/D66976 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370474 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index b2cc8fba177..6f9b38dfb3f 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -1099,7 +1099,7 @@ static char getNMSectionTagAndName(SymbolicFile &Obj, basic_symbol_iterator I, Expected NameOrErr = (*SecIOrErr)->getName(); if (!NameOrErr) { - consumeError(SecIOrErr.takeError()); + consumeError(NameOrErr.takeError()); return '?'; } SecName = *NameOrErr;