Skip to content

Commit a2afc82

Browse files
committed
[libc++] Fix benchmark failure
1 parent c03fdd3 commit a2afc82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/benchmarks/filesystem.bench.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void BM_PathIterateMultipleTimes(benchmark::State &st, GenInputs gen) {
8383
PP /= Part;
8484
benchmark::DoNotOptimize(PP.native().data());
8585
while (st.KeepRunning()) {
86-
for (auto &E : PP) {
86+
for (auto const& E : PP) {
8787
benchmark::DoNotOptimize(E.native().data());
8888
}
8989
benchmark::ClobberMemory();
@@ -104,7 +104,7 @@ void BM_PathIterateOnce(benchmark::State &st, GenInputs gen) {
104104
benchmark::DoNotOptimize(PP.native().data());
105105
while (st.KeepRunning()) {
106106
const path P = PP.native();
107-
for (auto &E : P) {
107+
for (auto const& E : P) {
108108
benchmark::DoNotOptimize(E.native().data());
109109
}
110110
benchmark::ClobberMemory();

0 commit comments

Comments
 (0)