Fixes a typo that causes Reserve(X) to both re-allocate the container and

change the last index (i.e. to X), which has unintended consequences for
Reserve(X) followed by Append().

llvm-svn: 190785
This commit is contained in:
Ashok Thirumurthi 2013-09-16 14:17:27 +00:00
parent c354d2177a
commit 725ec4e84f
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ namespace lldb_private {
void
Reserve (typename Collection::size_type size)
{
m_entries.resize (size);
m_entries.reserve (size);
}
bool