From: Hans Wennborg Date: Wed, 20 Feb 2019 14:50:08 +0000 (+0000) Subject: Fix the build with gcc/libstdc++ 4.8.2 after r354441 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6538c025564461b6a17985f8eb3cc4c6bcd717f2;p=llvm 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 --- 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. };