1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01: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:
Clement Courbet 2019-03-22 13:37:39 +00:00
parent 2ed5bfe998
commit e68783956d

View File

@ -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));
};