OSDN Git Service

Fix compilation under pre-c++14 gccs.
authorClement Courbet <courbet@google.com>
Tue, 15 May 2018 12:38:06 +0000 (12:38 +0000)
committerClement Courbet <courbet@google.com>
Tue, 15 May 2018 12:38:06 +0000 (12:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332346 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-exegesis/lib/Clustering.cpp

index e0eaee3..acd2276 100644 (file)
@@ -157,7 +157,7 @@ InstructionBenchmarkClustering::create(
     const double Epsilon) {
   InstructionBenchmarkClustering Clustering(Points);
   if (auto Error = Clustering.validateAndSetup()) {
-    return Error;
+    return std::move(Error);
   }
   if (Clustering.ErrorCluster_.PointIndices.size() == Points.size()) {
     return Clustering; // Nothing to cluster.