diff options
-rw-r--r-- | lld/lib/ReaderWriter/MachO/LayoutPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp index 0c14ee9d39a..e64002e4bf7 100644 --- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp +++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp @@ -333,8 +333,8 @@ void LayoutPass::buildFollowOnTable(SimpleFile::DefinedAtomRange &range) { ScopedTask task(getDefaultDomain(), "LayoutPass::buildFollowOnTable"); // Set the initial size of the followon and the followonNext hash to the // number of atoms that we have. - _followOnRoots.resize(range.size()); - _followOnNexts.resize(range.size()); + _followOnRoots.reserve(range.size()); + _followOnNexts.reserve(range.size()); for (const DefinedAtom *ai : range) { for (const Reference *r : *ai) { if (r->kindNamespace() != lld::Reference::KindNamespace::all || |