1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

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 d1aa19fac3
commit 6c83d875a3

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.