diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 4a278542eb94..2cb5a678acdc 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -820,7 +820,7 @@ template void BinaryFile::parse() { StringRef SizeName = Saver.save(Twine(Filename) + "_size"); auto *Section = - new InputSection(SHF_ALLOC, SHT_PROGBITS, 8, Data, ".data"); + make>(SHF_ALLOC, SHT_PROGBITS, 8, Data, ".data"); Sections.push_back(Section); elf::Symtab::X->addRegular(StartName, STV_DEFAULT, Section, STB_GLOBAL,