projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a -Wpessimizing-move warning.
[oota-llvm.git]
/
include
/
llvm
/
ProfileData
/
InstrProf.h
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);
}
assert(I == N);
- return
std::move(VD)
;
+ return
VD
;
}
void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site,
}
void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site,