Remove an allocator which was used for just one allocation.
llvm-svn: 246662
diff --git a/lld/COFF/InputFiles.cpp b/lld/COFF/InputFiles.cpp
index 273e6d3..a8a35a5 100644
--- a/lld/COFF/InputFiles.cpp
+++ b/lld/COFF/InputFiles.cpp
@@ -58,13 +58,11 @@
// Allocate a buffer for Lazy objects.
size_t NumSyms = File->getNumberOfSymbols();
- size_t BufSize = NumSyms * sizeof(Lazy);
- Lazy *Buf = (Lazy *)Alloc.Allocate(BufSize, llvm::alignOf<Lazy>());
LazySymbols.reserve(NumSyms);
// Read the symbol table to construct Lazy objects.
for (const Archive::Symbol &Sym : File->symbols())
- LazySymbols.push_back(new (Buf++) Lazy(this, Sym));
+ LazySymbols.emplace_back(this, Sym);
// Seen is a map from member files to boolean values. Initially
// all members are mapped to false, which indicates all these files