[libcxx-commits] [libcxx] [libc++] Make benchmarks forward-compatible with the test suite (PR #114502)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 1 02:26:03 PDT 2024
================
@@ -13,14 +13,16 @@
static void BM_SharedPtrCreateDestroy(benchmark::State& st) {
while (st.KeepRunning()) {
auto sp = std::make_shared<int>(42);
- benchmark::DoNotOptimize(sp.get());
+ int* ptr = sp.get();
+ benchmark::DoNotOptimize(ptr);
----------------
philnik777 wrote:
Same question here.
https://github.com/llvm/llvm-project/pull/114502
More information about the libcxx-commits
mailing list