Fix a -Wpessimizing-move warning.
authorCraig Topper <craig.topper@gmail.com>
Mon, 2 Nov 2015 05:24:28 +0000 (05:24 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 2 Nov 2015 05:24:28 +0000 (05:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251773 91177308-0d34-0410-b5e6-96231b3b80d8

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,