mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 10:08:59 +08:00
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:
@@ -592,7 +592,7 @@ namespace lldb_private {
|
||||
void
|
||||
Reserve (typename Collection::size_type size)
|
||||
{
|
||||
m_entries.resize (size);
|
||||
m_entries.reserve (size);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user