[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:
parent
8bc9551d9b
commit
6bb5d6ae23
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user