diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 9cb0460a2dac..6f55bac2ecf1 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -273,12 +273,12 @@ template static bool isReadOnly(SharedSymbol &ss) { // them are copied by a copy relocation, all of them need to be copied. // Otherwise, they would refer to different places at runtime. template -static SmallSet getSymbolsAt(Ctx &ctx, SharedSymbol &ss) { +static SmallPtrSet getSymbolsAt(Ctx &ctx, SharedSymbol &ss) { using Elf_Sym = typename ELFT::Sym; const auto &file = cast(*ss.file); - SmallSet ret; + SmallPtrSet ret; for (const Elf_Sym &s : file.template getGlobalELFSyms()) { if (s.st_shndx == SHN_UNDEF || s.st_shndx == SHN_ABS || s.getType() == STT_TLS || s.st_value != ss.value)