[all-commits] [llvm/llvm-project] dfc0d7: [libc++] Don't pass a path lvalue to DoNotOptimize...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Sep 23 11:55:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfc0d74533a697129b29450bd8ca7d2010007df9
      https://github.com/llvm/llvm-project/commit/dfc0d74533a697129b29450bd8ca7d2010007df9
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M libcxx/test/benchmarks/filesystem.bench.cpp

  Log Message:
  -----------
  [libc++] Don't pass a path lvalue to DoNotOptimize in the filesystem benchmark (#225504)

BM_PathIterateOnceBackwards passes *I directly to DoNotOptimize.
However, libstdc++ returns a const lvalue reference to `path` from that
operation, which selects GoogleBenchmark's deprecated const-ref
overload.

Use the pattern used elsewhere in this file instead.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list