aboutsummaryrefslogtreecommitdiff
path: root/lldb
diff options
context:
space:
mode:
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp6
-rw-r--r--lldb/test/API/commands/command/script/add/TestAddParsedCommand.py1
2 files changed, 3 insertions, 4 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;
diff --git a/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py b/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
index c044e2b..bbf3305 100644
--- a/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
+++ b/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
@@ -15,7 +15,6 @@ class ParsedCommandTestCase(TestBase):
# This crashes on the x86_64 Debian bot, but the failure is not helpful.
# Disable the test while I try to find a way to reproduce.
- @skipIfLinux
def test(self):
self.pycmd_tests()