diff options
author | Samuel Benzaquen <sbenza@google.com> | 2018-10-29 19:08:31 +0000 |
---|---|---|
committer | Samuel Benzaquen <sbenza@google.com> | 2018-10-29 19:08:31 +0000 |
commit | 2f628a1030376e751194453d0b0788303d9f6811 (patch) | |
tree | 14ba714e2bf93dbf88598e5e9aa0dbfe0fc633ca /libcxx/benchmarks | |
parent | a49fe5d878fc8b9246e8ab53862077c21c22cc8c (diff) | |
download | bcm5719-llvm-2f628a1030376e751194453d0b0788303d9f6811.tar.gz bcm5719-llvm-2f628a1030376e751194453d0b0788303d9f6811.zip |
Fix mismatch between size_t and uint64_t in std::set benchmark.
llvm-svn: 345523
Diffstat (limited to 'libcxx/benchmarks')
-rw-r--r-- | libcxx/benchmarks/ordered_set.bench.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/benchmarks/ordered_set.bench.cpp b/libcxx/benchmarks/ordered_set.bench.cpp index 104948739b9..b2ef0725b7b 100644 --- a/libcxx/benchmarks/ordered_set.bench.cpp +++ b/libcxx/benchmarks/ordered_set.bench.cpp @@ -83,12 +83,12 @@ struct Create : Base { using Base::Base; void run(benchmark::State& State) const { - std::vector<size_t> Keys(TableSize); - std::iota(Keys.begin(), Keys.end(), size_t{0}); + std::vector<uint64_t> Keys(TableSize); + std::iota(Keys.begin(), Keys.end(), uint64_t{0}); sortKeysBy(Keys, Access()); while (State.KeepRunningBatch(TableSize * NumTables)) { - std::vector<std::set<size_t>> Sets(NumTables); + std::vector<std::set<uint64_t>> Sets(NumTables); for (auto K : Keys) { for (auto& Set : Sets) { benchmark::DoNotOptimize(Set.insert(K)); |