[llvm] r354469 - Fix the build with gcc/libstdc++ 4.8.2 after r354441

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 20 06:50:08 PST 2019


Author: hans
Date: Wed Feb 20 06:50:08 2019
New Revision: 354469

URL: http://llvm.org/viewvc/llvm-project?rev=354469&view=rev
Log:
Fix the build with gcc/libstdc++ 4.8.2 after r354441

Modified:
    llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp

Modified: llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp?rev=354469&r1=354468&r2=354469&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Clustering.cpp Wed Feb 20 06:50:08 2019
@@ -226,10 +226,10 @@ void InstructionBenchmarkClustering::sta
                       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.
     };




More information about the llvm-commits mailing list