[llvm] r264029 - Fix unittests: resize() -> reserve()
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 00:35:51 PDT 2016
Author: mehdi_amini
Date: Tue Mar 22 02:35:51 2016
New Revision: 264029
URL: http://llvm.org/viewvc/llvm-project?rev=264029&view=rev
Log:
Fix unittests: resize() -> reserve()
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/unittests/ADT/DenseMapTest.cpp
Modified: llvm/trunk/unittests/ADT/DenseMapTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/DenseMapTest.cpp?rev=264029&r1=264028&r2=264029&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/DenseMapTest.cpp (original)
+++ llvm/trunk/unittests/ADT/DenseMapTest.cpp Tue Mar 22 02:35:51 2016
@@ -344,7 +344,7 @@ TYPED_TEST(DenseMapTest, ConstIteratorTe
TEST(DenseMapCustomTest, ResizeTest) {
for (unsigned Size = 16; Size < 32; ++Size) {
DenseMap<unsigned, unsigned> Map;
- Map.resize(Size);
+ Map.reserve(Size);
unsigned MemorySize = Map.getMemorySize();
for (unsigned i = 0; i < Size; ++i)
Map[i] = i;
More information about the llvm-commits
mailing list