diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 06c9de864272..90561bc5b04b 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -633,7 +633,7 @@ void GnuHashTableSection::addSymbols(std::vector &V) { return; for (auto I = Mid, E = V.end(); I != E; ++I) { SymbolBody *B = I->Symbol; - typename ELFT::uint StrOff = I->StrTabOffset; + size_t StrOff = I->StrTabOffset; Symbols.push_back({B, StrOff, hashGnu(B->getName())}); } diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index f73c41856c2b..f5a527094a8f 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -266,7 +266,7 @@ private: struct SymbolTableEntry { SymbolBody *Symbol; - std::size_t StrTabOffset; + size_t StrTabOffset; }; template