From a206567c6b58b844ea5d472c670aac643127efa1 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Tue, 15 May 2018 12:38:06 +0000 Subject: [PATCH] Fix compilation under pre-c++14 gccs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332346 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-exegesis/lib/Clustering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-exegesis/lib/Clustering.cpp b/tools/llvm-exegesis/lib/Clustering.cpp index e0eaee395f5..acd2276260b 100644 --- a/tools/llvm-exegesis/lib/Clustering.cpp +++ b/tools/llvm-exegesis/lib/Clustering.cpp @@ -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. -- 2.11.0