From 3755f9f48cede35aea7ad909105ea84564108827 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Mon, 22 Jun 2015 23:16:02 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240355 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Option/OptTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Option/OptTable.cpp b/lib/Option/OptTable.cpp index 2160b15c1cf..185a734f8f5 100644 --- a/lib/Option/OptTable.cpp +++ b/lib/Option/OptTable.cpp @@ -287,7 +287,7 @@ InputArgList OptTable::ParseArgs(ArrayRef ArgArr, Args.append(A); } - return std::move(Args); + return Args; } static std::string getOptionHelpName(const OptTable &Opts, OptSpecifier Id) { -- 2.34.1