diff options
author | Logan Chien <tzuhsiang.chien@gmail.com> | 2015-06-22 23:16:02 +0000 |
---|---|---|
committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2015-06-22 23:16:02 +0000 |
commit | 9d5891fd3422ff63fa2e851ae99cfb19c31206ce (patch) | |
tree | 5bab8e1a1501231ab9c89b4cfa84ead7a859bb45 /llvm/lib/Option/OptTable.cpp | |
parent | ffb2d44ab93184a723e37793efc50ddafc5afbe1 (diff) | |
download | llvm-9d5891fd3422ff63fa2e851ae99cfb19c31206ce.zip llvm-9d5891fd3422ff63fa2e851ae99cfb19c31206ce.tar.gz llvm-9d5891fd3422ff63fa2e851ae99cfb19c31206ce.tar.bz2 |
Code cleanup: Remove std::move() around xvalue (NFC)
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
Diffstat (limited to 'llvm/lib/Option/OptTable.cpp')
-rw-r--r-- | llvm/lib/Option/OptTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Option/OptTable.cpp b/llvm/lib/Option/OptTable.cpp index 2160b15..185a734 100644 --- 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) { |