Fix compilation under pre-c++14 gccs.

llvm-svn: 332346
This commit is contained in:
Clement Courbet 2018-05-15 12:38:06 +00:00
parent 7b19ffcc01
commit cdb0eb88e3
1 changed files with 1 additions and 1 deletions

View 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.