[NFC] Use a move instead of a copy to optimize performance. (#118699)

This is an issue detected by a static analysis tool,
This commit is contained in:
Zahira Ammarguellat 2024-12-06 04:54:27 -08:00 committed by GitHub
parent 8bc9551d9b
commit 6bb5d6ae23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -199,7 +199,7 @@ bool IsModuleFileUpToDate(PathRef ModuleFilePath,
SourceManager SourceMgr(*Diags, FileMgr);
HeaderSearch HeaderInfo(HSOpts, SourceMgr, *Diags, LangOpts,
HeaderSearch HeaderInfo(std::move(HSOpts), SourceMgr, *Diags, LangOpts,
/*Target=*/nullptr);
TrivialModuleLoader ModuleLoader;