[llvm-branch-commits] [llvm] 38bfa25 - Revert "[benchmark] Fixed a build error when using CMake 3.15.1 + NDK-R20"

Roman Lebedev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 28 09:23:21 PST 2020


Author: Roman Lebedev
Date: 2020-12-28T20:19:08+03:00
New Revision: 38bfa25387f4d1292c12a574df6b3cd0f3c212d6

URL: https://github.com/llvm/llvm-project/commit/38bfa25387f4d1292c12a574df6b3cd0f3c212d6
DIFF: https://github.com/llvm/llvm-project/commit/38bfa25387f4d1292c12a574df6b3cd0f3c212d6.diff

LOG: Revert "[benchmark] Fixed a build error when using CMake 3.15.1 + NDK-R20"

Temporairly revert until a consensus on post-commit comments is achieved.

This reverts commit a485a59d2172daaee1d5e734da54fbb243f7d54c.

Added: 
    

Modified: 
    llvm/utils/benchmark/include/benchmark/benchmark.h

Removed: 
    


################################################################################
diff  --git a/llvm/utils/benchmark/include/benchmark/benchmark.h b/llvm/utils/benchmark/include/benchmark/benchmark.h
index 0b4baec41755..ab61c46e9386 100644
--- a/llvm/utils/benchmark/include/benchmark/benchmark.h
+++ b/llvm/utils/benchmark/include/benchmark/benchmark.h
@@ -990,7 +990,7 @@ inline internal::Benchmark* RegisterBenchmark(const char* name,
 #ifdef BENCHMARK_HAS_CXX11
 template <class Lambda>
 internal::Benchmark* RegisterBenchmark(const char* name, Lambda&& fn) {
-  using BenchType = internal::LambdaBenchmark<std::decay<Lambda>>;
+  using BenchType = internal::LambdaBenchmark<std::decay_t<Lambda>>;
   return internal::RegisterBenchmarkInternal(
       ::new BenchType(name, std::forward<Lambda>(fn)));
 }


        


More information about the llvm-branch-commits mailing list