Fix a -Wpessimizing-move warning.
[oota-llvm.git] / include / llvm / ProfileData / InstrProf.h
index cc2e25262a022790630674673d4b05a1a8f2c083..2be174d573d0b524854c080222c5353f978da198 100644 (file)
@@ -308,7 +308,7 @@ std::unique_ptr<InstrProfValueData[]> InstrProfRecord::getValueForSite(
   }
   assert(I == N);
 
   }
   assert(I == N);
 
-  return std::move(VD);
+  return VD;
 }
 
 void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site,
 }
 
 void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site,