[llvm] r251773 - Fix a -Wpessimizing-move warning.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 1 21:24:28 PST 2015


Author: ctopper
Date: Sun Nov  1 23:24:28 2015
New Revision: 251773

URL: http://llvm.org/viewvc/llvm-project?rev=251773&view=rev
Log:
Fix a -Wpessimizing-move warning.

Modified:
    llvm/trunk/include/llvm/ProfileData/InstrProf.h

Modified: llvm/trunk/include/llvm/ProfileData/InstrProf.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/InstrProf.h?rev=251773&r1=251772&r2=251773&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/InstrProf.h (original)
+++ llvm/trunk/include/llvm/ProfileData/InstrProf.h Sun Nov  1 23:24:28 2015
@@ -308,7 +308,7 @@ std::unique_ptr<InstrProfValueData[]> In
   }
   assert(I == N);
 
-  return std::move(VD);
+  return VD;
 }
 
 void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site,




More information about the llvm-commits mailing list