From: Craig Topper <craig.topper@gmail.com>
Date: Mon, 2 Nov 2015 05:24:28 +0000 (+0000)
Subject: Fix a -Wpessimizing-move warning.
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6eef6fc8593a2d3909c168b0fcd9027b40c5c6f8;p=llvm

Fix a -Wpessimizing-move warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251773 91177308-0d34-0410-b5e6-96231b3b80d8
---

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