aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Option/OptTable.cpp
diff options
context:
space:
mode:
authorLogan Chien <tzuhsiang.chien@gmail.com>2015-06-22 23:16:02 +0000
committerLogan Chien <tzuhsiang.chien@gmail.com>2015-06-22 23:16:02 +0000
commit9d5891fd3422ff63fa2e851ae99cfb19c31206ce (patch)
tree5bab8e1a1501231ab9c89b4cfa84ead7a859bb45 /llvm/lib/Option/OptTable.cpp
parentffb2d44ab93184a723e37793efc50ddafc5afbe1 (diff)
downloadllvm-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.cpp2
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) {