summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-11-02 05:24:28 +0000
committerCraig Topper <craig.topper@gmail.com>2015-11-02 05:24:28 +0000
commita8d0be0cd66031b6eb05adf7b1d6d421f2cb91bb (patch)
treeb6d454e8d507a8fcb51e823d044c88522242c27b
parent95ceb5a60a3c3ec07147d8464e1ef2587f950081 (diff)
downloadbcm5719-llvm-a8d0be0cd66031b6eb05adf7b1d6d421f2cb91bb.tar.gz
bcm5719-llvm-a8d0be0cd66031b6eb05adf7b1d6d421f2cb91bb.zip
Fix a -Wpessimizing-move warning.
llvm-svn: 251773
-rw-r--r--llvm/include/llvm/ProfileData/InstrProf.h2
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,
OpenPOWER on IntegriCloud