[lld] Turn misc copy-assign to move-assign (#184145)
That's an automated patch generated from clang-tidy performance-use-std-move as a follow-up to #184136
This commit is contained in:
parent
534d6e887f
commit
33864efe46
@ -868,7 +868,7 @@ void LinkerDriver::addWinSysRootLibSearchPaths() {
|
||||
llvm::StringSet<> noDefaultLibs;
|
||||
for (auto &iter : ctx.config.noDefaultLibs)
|
||||
noDefaultLibs.insert(findLib(iter.first()).lower());
|
||||
ctx.config.noDefaultLibs = noDefaultLibs;
|
||||
ctx.config.noDefaultLibs = std::move(noDefaultLibs);
|
||||
}
|
||||
|
||||
// Parses LIB environment which contains a list of search paths.
|
||||
|
||||
@ -240,7 +240,7 @@ void CustomSection::finalizeInputSections() {
|
||||
return;
|
||||
|
||||
mergedSection->finalizeContents();
|
||||
inputSections = newSections;
|
||||
inputSections = std::move(newSections);
|
||||
}
|
||||
|
||||
void CustomSection::finalizeContents() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user