projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81f6c55
)
Fix a -Wpessimizing-move warning.
author
Craig Topper
<craig.topper@gmail.com>
Mon, 2 Nov 2015 05:24:28 +0000
(
05:24
+0000)
committer
Craig 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
patch
|
blob
|
history
diff --git
a/include/llvm/ProfileData/InstrProf.h
b/include/llvm/ProfileData/InstrProf.h
index cc2e25262a022790630674673d4b05a1a8f2c083..2be174d573d0b524854c080222c5353f978da198 100644
(file)
--- 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,