mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00
[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
This commit is contained in:
parent
2855077963
commit
c08b26edb8
@ -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));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user