projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffb2d44
)
Code cleanup: Remove std::move() around xvalue (NFC)
author
Logan Chien
<tzuhsiang.chien@gmail.com>
Mon, 22 Jun 2015 23:16:02 +0000
(23:16 +0000)
committer
Logan Chien
<tzuhsiang.chien@gmail.com>
Mon, 22 Jun 2015 23:16:02 +0000
(23:16 +0000)
Remove std::move() around xvalue so that copy elision is eligible.
In case that copy elision is not appliable, the c++ standard also
guarantees the move semantics on xvalue. Thus, it is not necessary
to wrap Args with std::move.
This also silence a warning since r240345.
llvm-svn: 240355
llvm/lib/Option/OptTable.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Option/OptTable.cpp
b/llvm/lib/Option/OptTable.cpp
index
2160b15
..
185a734
100644
(file)
--- a/
llvm/lib/Option/OptTable.cpp
+++ b/
llvm/lib/Option/OptTable.cpp
@@
-287,7
+287,7
@@
InputArgList OptTable::ParseArgs(ArrayRef<const char *> ArgArr,
Args.append(A);
}
- return
std::move(Args)
;
+ return
Args
;
}
static std::string getOptionHelpName(const OptTable &Opts, OptSpecifier Id) {