]> granicus.if.org Git - llvm/commitdiff
Fix the build with gcc/libstdc++ 4.8.2 after r354441
authorHans Wennborg <hans@hanshq.net>
Wed, 20 Feb 2019 14:50:08 +0000 (14:50 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 20 Feb 2019 14:50:08 +0000 (14:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354469 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-exegesis/lib/Clustering.cpp

index bebb535f431b39f406870af95b1fd443a9851a43..0c529c4cbd9a3a871159b0e1497a9b48b9559d04 100644 (file)
@@ -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.
     };