OSDN Git Service

[llvm-exegesis] Fix compilation before c++17.
authorClement Courbet <courbet@google.com>
Fri, 22 Mar 2019 13:37:39 +0000 (13:37 +0000)
committerClement Courbet <courbet@google.com>
Fri, 22 Mar 2019 13:37:39 +0000 (13:37 +0000)
commitf0344750f209becb1e408dfbd9d776a1951d5da7
treea5482cc394b4e834900013693cbd0964da221afb
parent6e4d6c21043b71b6f9f1f18002e09fdc83a2651a
[llvm-exegesis] Fix compilation before c++17.

ClusteringTest.cpp:25:23: error: constexpr variable cannot have non-literal type 'const llvm::exegesis::(anonymous namespace)::(lambda at /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/unittests/tools/llvm-exegesis/ClusteringTest.cpp:25:35)'
static constexpr auto HasPoints = [](const std::vector<int> &Indices) {

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356748 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/tools/llvm-exegesis/ClusteringTest.cpp