[llvm] 02bc772 - Fix use of undeclared identifier 'EC' (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 28 16:31:52 PDT 2023


Author: Jie Fu
Date: 2023-04-29T07:30:35+08:00
New Revision: 02bc772de7d372746eba98e7039f38759e896538

URL: https://github.com/llvm/llvm-project/commit/02bc772de7d372746eba98e7039f38759e896538
DIFF: https://github.com/llvm/llvm-project/commit/02bc772de7d372746eba98e7039f38759e896538.diff

LOG: Fix use of undeclared identifier 'EC' (NFC)

/Users/jiefu/llvm-project/llvm/lib/Object/GOFFObjectFile.cpp:199:3: error: use of undeclared identifier 'EC'
  EC = ConverterEBCDIC::convertToUTF8(SymbolName, SymbolNameConverted);
  ^
1 error generated.

Added: 
    

Modified: 
    llvm/lib/Object/GOFFObjectFile.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Object/GOFFObjectFile.cpp b/llvm/lib/Object/GOFFObjectFile.cpp
index 34b74386cbda..cc11272ca4d7 100644
--- a/llvm/lib/Object/GOFFObjectFile.cpp
+++ b/llvm/lib/Object/GOFFObjectFile.cpp
@@ -196,7 +196,7 @@ Expected<StringRef> GOFFObjectFile::getSymbolName(DataRefImpl Symb) const {
     return std::move(Err);
 
   SmallString<256> SymbolNameConverted;
-  EC = ConverterEBCDIC::convertToUTF8(SymbolName, SymbolNameConverted);
+  ConverterEBCDIC::convertToUTF8(SymbolName, SymbolNameConverted);
 
   size_t Size = SymbolNameConverted.size();
   auto StrPtr = std::make_pair(Size, std::make_unique<char[]>(Size));


        


More information about the llvm-commits mailing list