aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-15 12:38:06 +0000
committerClement Courbet <courbet@google.com>2018-05-15 12:38:06 +0000
commitcdb0eb88e33569e1ea330b456cd12fcb36c84b6f (patch)
tree4bf411ee1f5f00c6c97311d8568b8f19c1ad1cf7
parent7b19ffcc015afe3fd76a3731a03bf18da48c59a7 (diff)
downloadllvm-cdb0eb88e33569e1ea330b456cd12fcb36c84b6f.zip
llvm-cdb0eb88e33569e1ea330b456cd12fcb36c84b6f.tar.gz
llvm-cdb0eb88e33569e1ea330b456cd12fcb36c84b6f.tar.bz2
Fix compilation under pre-c++14 gccs.
llvm-svn: 332346
-rw-r--r--llvm/tools/llvm-exegesis/lib/Clustering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Clustering.cpp b/llvm/tools/llvm-exegesis/lib/Clustering.cpp
index e0eaee3..acd2276 100644
--- a/llvm/tools/llvm-exegesis/lib/Clustering.cpp
+++ b/llvm/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.