[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
Tue Dec 29 17:55:22 PST 2020


azhuang added a comment.

  using BenchType =
      internal::LambdaBenchmark<typename std::decay<Lambda>::type>;

should be correct, I didn't see the original change, but my patch just passed the build, so I thought it's a correct fix.

The build error message without the patch.

  00:32:57  /jenkins/workspace/DevOpsTest/Hongmei/vulkan/android_xgl_llpc-psdb/driver_build/drivers/xgl/icd/imported/llvm-project/llvm/utils/benchmark/include/benchmark/benchmark.h:993:52: error: no template named 'decay_t' in namespace 'std'; did you mean 'decay'?
  00:32:57    using BenchType = internal::LambdaBenchmark<std::decay_t<Lambda>>;
  00:32:57                                                ~~~~~^~~~~~~
  00:32:57                                                     decay
  00:32:57  /experiments/ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/type_traits:1363:29: note: 'decay' declared here
  00:32:57  struct _LIBCPP_TEMPLATE_VIS decay
  00:32:57                              


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