projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove std::move on return when it could prevent copy elision.
[oota-llvm.git]
/
utils
/
yaml-bench
/
YAMLBench.cpp
diff --git
a/utils/yaml-bench/YAMLBench.cpp
b/utils/yaml-bench/YAMLBench.cpp
index 872f586ef7e1896235d21bab3603ec2b17d346ec..0fb31387fc2e7a01b9d2262ef8f77de8050f0667 100644
(file)
--- a/
utils/yaml-bench/YAMLBench.cpp
+++ b/
utils/yaml-bench/YAMLBench.cpp
@@
-69,7
+69,7
@@
static std::string prettyTag(yaml::Node *N) {
if (StringRef(Tag).startswith("tag:yaml.org,2002:")) {
std::string Ret = "!!";
Ret += StringRef(Tag).substr(18);
- return
std::move(Ret)
;
+ return
Ret
;
}
std::string Ret = "!<";
Ret += Tag;