diff options
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
-rw-r--r-- | lld/ELF/InputFiles.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index a9f1f860aba..a1f6b137881 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -511,11 +511,10 @@ SymbolBody *elf::ObjectFile<ELFT>::createSymbolBody(const Elf_Sym *Sym) { StringRefZ Name = this->StringTable.data() + Sym->st_name; if (Sym->st_shndx == SHN_UNDEF) - return new (BAlloc) - Undefined(Name, /*IsLocal=*/true, StOther, Type, this); + return make<Undefined>(Name, /*IsLocal=*/true, StOther, Type, this); - return new (BAlloc) DefinedRegular(Name, /*IsLocal=*/true, StOther, Type, - Value, Size, Sec, this); + return make<DefinedRegular>(Name, /*IsLocal=*/true, StOther, Type, Value, + Size, Sec, this); } StringRef Name = check(Sym->getName(this->StringTable)); |