[PATCH] D93794: Fixed a build error when using CMake 3.15.1 + NDK-R20

Danila Malyutin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 28 04:33:39 PST 2020


danilaml added inline comments.


================
Comment at: llvm/utils/benchmark/include/benchmark/benchmark.h:993
 internal::Benchmark* RegisterBenchmark(const char* name, Lambda&& fn) {
-  using BenchType = internal::LambdaBenchmark<std::decay_t<Lambda>>;
+  using BenchType = internal::LambdaBenchmark<std::decay<Lambda>>;
   return internal::RegisterBenchmarkInternal(
----------------
Shouldn't it be `typename std::decay<Lambda>::type` ?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93794/new/

https://reviews.llvm.org/D93794



More information about the llvm-commits mailing list