[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:
serge-sans-paille 2026-03-03 13:28:00 +00:00 committed by GitHub
parent 534d6e887f
commit 33864efe46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -240,7 +240,7 @@ void CustomSection::finalizeInputSections() {
return;
mergedSection->finalizeContents();
inputSections = newSections;
inputSections = std::move(newSections);
}
void CustomSection::finalizeContents() {