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

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 28 00:26:36 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa485a59d2172: [benchmark] Fixed a build error when using CMake 3.15.1 + NDK-R20 (authored by azhuang, committed by lebedev.ri).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93794

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


Index: llvm/utils/benchmark/include/benchmark/benchmark.h
===================================================================
--- llvm/utils/benchmark/include/benchmark/benchmark.h
+++ llvm/utils/benchmark/include/benchmark/benchmark.h
@@ -990,7 +990,7 @@
 #ifdef BENCHMARK_HAS_CXX11
 template <class Lambda>
 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(
       ::new BenchType(name, std::forward<Lambda>(fn)));
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93794.313830.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201228/4192d292/attachment.bin>


More information about the llvm-commits mailing list