diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r-- | lld/ELF/Writer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index cc12e5ce35f..ce5ef0229a9 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -533,11 +533,11 @@ template <class ELFT> void Writer<ELFT>::addSectionSymbols() { if (!IS || isa<SyntheticSection>(IS) || IS->Type == SHT_REL || IS->Type == SHT_RELA) continue; - auto *B = new (BAlloc) - DefinedRegular("", /*IsLocal=*/true, /*StOther*/ 0, STT_SECTION, - /*Value*/ 0, /*Size*/ 0, IS, nullptr); - In<ELFT>::SymTab->addSymbol(B); + auto *Sym = + make<DefinedRegular>("", /*IsLocal=*/true, /*StOther=*/0, STT_SECTION, + /*Value=*/0, /*Size=*/0, IS, nullptr); + In<ELFT>::SymTab->addSymbol(Sym); } } |