[PATCH] D93794: Fixed a build error when using CMake 3.15.1 + NDK-R20
AnZhong Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 23 23:41:14 PST 2020
azhuang updated this revision to Diff 313660.
azhuang edited the summary of this revision.
azhuang added a comment.
Changed change std::decay_t to std::decay as per review.
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.313660.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201224/1cf85694/attachment.bin>
More information about the llvm-commits
mailing list