mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
08056a49f1
commit
3755f9f48c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user