From 6538c025564461b6a17985f8eb3cc4c6bcd717f2 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 20 Feb 2019 14:50:08 +0000 Subject: [PATCH] Fix the build with gcc/libstdc++ 4.8.2 after r354441 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354469 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-exegesis/lib/Clustering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-exegesis/lib/Clustering.cpp b/tools/llvm-exegesis/lib/Clustering.cpp index bebb535f431..0c529c4cbd9 100644 --- a/tools/llvm-exegesis/lib/Clustering.cpp +++ b/tools/llvm-exegesis/lib/Clustering.cpp @@ -226,10 +226,10 @@ void InstructionBenchmarkClustering::stabilize(unsigned NumOpcodes) { ClusterIdForPoint_[P] = UnstableCluster.Id; }); // Actually append to-be-moved points to the new cluster. - UnstableCluster.PointIndices.insert(UnstableCluster.PointIndices.cend(), + UnstableCluster.PointIndices.insert(UnstableCluster.PointIndices.end(), it, OldCluster.PointIndices.end()); // And finally, remove "to-be-moved" points form the old cluster. - OldCluster.PointIndices.erase(it, OldCluster.PointIndices.cend()); + OldCluster.PointIndices.erase(it, OldCluster.PointIndices.end()); // Now, the old cluster may end up being empty, but let's just keep it // in whatever state it ended up. Purging empty clusters isn't worth it. }; -- 2.40.0