diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-25 05:57:52 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-03-25 05:57:52 +0000 |
commit | 05eca80cb8c9d22e5faa24c1758cf82fcd801e23 (patch) | |
tree | e510e74278385f02c2e8bde961766b81e4d9ad8c /lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py | |
parent | 8bdafd49024c3ccf81c1aca54794a13ccd530509 (diff) | |
download | bcm5719-llvm-05eca80cb8c9d22e5faa24c1758cf82fcd801e23.tar.gz bcm5719-llvm-05eca80cb8c9d22e5faa24c1758cf82fcd801e23.zip |
Fix DenseMap::reserve(): the formula was wrong
Summary:
Just running the loop in the unittests for a few more iterations
(till 48) exhibit that the condition on the limit was not handled
properly in r263522.
Rewrite the test to use a class to count move/copies that happens
when inserting into the map.
Also take the opportunity to refactor the logic to compute the
number of buckets required for a given number of entries in the map.
Use this when constructing a DenseMap with a desired size given to
the constructor (and add a tests for this).
Reviewers: dblaikie
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D18345
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 264384
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py')
0 files changed, 0 insertions, 0 deletions