summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2019-03-22 13:37:39 +0000
committerClement Courbet <courbet@google.com>2019-03-22 13:37:39 +0000
commitc08b26edb8eb8c71ce11688a0a79a80e025bb11f (patch)
treeec141aff83bd66e54088df9205369ded3f306598 /llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
parent28550779638d873cd1a58712c1938349a437fdc0 (diff)
downloadbcm5719-llvm-c08b26edb8eb8c71ce11688a0a79a80e025bb11f.tar.gz
bcm5719-llvm-c08b26edb8eb8c71ce11688a0a79a80e025bb11f.zip
[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) { llvm-svn: 356748
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp')
-rw-r--r--llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp b/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
index 174dd4300c5..2833d557ba2 100644
--- a/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
@@ -22,7 +22,7 @@ using testing::Field;
using testing::UnorderedElementsAre;
using testing::UnorderedElementsAreArray;
-static constexpr auto HasPoints = [](const std::vector<int> &Indices) {
+static const auto HasPoints = [](const std::vector<int> &Indices) {
return Field(&InstructionBenchmarkClustering::Cluster::PointIndices,
UnorderedElementsAreArray(Indices));
};
OpenPOWER on IntegriCloud