diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2022-01-24 12:05:09 -0500 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2022-01-24 12:05:09 -0500 |
commit | a2afc8249a9950da861bce5fd724c1ccf6c4eea4 (patch) | |
tree | 98f6067f0b70dbdb71599220521a0aabeaf644df /libcxx/benchmarks | |
parent | c03fdd340356c9a29242975f39786529eb99f194 (diff) | |
download | llvm-a2afc8249a9950da861bce5fd724c1ccf6c4eea4.tar.gz |
[libc++] Fix benchmark failure
Diffstat (limited to 'libcxx/benchmarks')
-rw-r--r-- | libcxx/benchmarks/filesystem.bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/benchmarks/filesystem.bench.cpp b/libcxx/benchmarks/filesystem.bench.cpp index 95aecd50473f..4fe4fc503ca1 100644 --- a/libcxx/benchmarks/filesystem.bench.cpp +++ b/libcxx/benchmarks/filesystem.bench.cpp @@ -83,7 +83,7 @@ void BM_PathIterateMultipleTimes(benchmark::State &st, GenInputs gen) { PP /= Part; benchmark::DoNotOptimize(PP.native().data()); while (st.KeepRunning()) { - for (auto &E : PP) { + for (auto const& E : PP) { benchmark::DoNotOptimize(E.native().data()); } benchmark::ClobberMemory(); @@ -104,7 +104,7 @@ void BM_PathIterateOnce(benchmark::State &st, GenInputs gen) { benchmark::DoNotOptimize(PP.native().data()); while (st.KeepRunning()) { const path P = PP.native(); - for (auto &E : P) { + for (auto const& E : P) { benchmark::DoNotOptimize(E.native().data()); } benchmark::ClobberMemory(); |