diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-11-02 05:24:28 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-11-02 05:24:28 +0000 |
commit | a8d0be0cd66031b6eb05adf7b1d6d421f2cb91bb (patch) | |
tree | b6d454e8d507a8fcb51e823d044c88522242c27b | |
parent | 95ceb5a60a3c3ec07147d8464e1ef2587f950081 (diff) | |
download | bcm5719-llvm-a8d0be0cd66031b6eb05adf7b1d6d421f2cb91bb.tar.gz bcm5719-llvm-a8d0be0cd66031b6eb05adf7b1d6d421f2cb91bb.zip |
Fix a -Wpessimizing-move warning.
llvm-svn: 251773
-rw-r--r-- | llvm/include/llvm/ProfileData/InstrProf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ProfileData/InstrProf.h b/llvm/include/llvm/ProfileData/InstrProf.h index cc2e25262a0..2be174d573d 100644 --- a/llvm/include/llvm/ProfileData/InstrProf.h +++ b/llvm/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, |