diff options
author | Jim Ingham <jingham@apple.com> | 2024-02-13 16:09:35 -0800 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2024-02-13 16:12:20 -0800 |
commit | 3647ff159a2f2445c45d9cbb4f8791b5f30da16b (patch) | |
tree | 70608bc45e8bf9835687c1a866c127df044ad77d /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 3122969e8e2404c1eb0b9c660bd979e1001c42fd (diff) | |
download | llvm-3647ff159a2f2445c45d9cbb4f8791b5f30da16b.zip llvm-3647ff159a2f2445c45d9cbb4f8791b5f30da16b.tar.gz llvm-3647ff159a2f2445c45d9cbb4f8791b5f30da16b.tar.bz2 |
Used std::vector::reserve when I meant std::vector::resize.
The Linux std has more asserts enabled by default, so it
complained, even though this worked on Darwin...
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 3dfd452..b7cd650 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1419,9 +1419,9 @@ private: m_options_definition_up.reset(new OptionDefinition[m_num_options]); // We need to hand out pointers to contents of these vectors; we reserve // as much as we'll need up front so they don't get freed on resize... - m_usage_container.reserve(m_num_options); - m_enum_storage.reserve(m_num_options); - m_enum_vector.reserve(m_num_options); + m_usage_container.resize(m_num_options); + m_enum_storage.resize(m_num_options); + m_enum_vector.resize(m_num_options); size_t counter = 0; size_t short_opt_counter = 0; |