[clang-tidy] Avoid repeated hash lookups (NFC) (#109373)
This commit is contained in:
parent
7365b1c7bb
commit
c498af71d7
@ -116,9 +116,8 @@ void ExpandModularHeadersPPCallbacks::handleModuleFile(
|
||||
if (!MF)
|
||||
return;
|
||||
// Avoid processing a ModuleFile more than once.
|
||||
if (VisitedModules.count(MF))
|
||||
if (!VisitedModules.insert(MF).second)
|
||||
return;
|
||||
VisitedModules.insert(MF);
|
||||
|
||||
// Visit all the input files of this module and mark them to record their
|
||||
// contents later.
|
||||
|
Loading…
x
Reference in New Issue
Block a user