[HeaderSearch] Fix processing #import-ed headers multiple times with modules enabled.HeaderSearch was marking requested HeaderFileInfo as Resolved only based onthe presence of ExternalSource. As t
[HeaderSearch] Fix processing #import-ed headers multiple times with modules enabled.HeaderSearch was marking requested HeaderFileInfo as Resolved only based onthe presence of ExternalSource. As the result, using any module was enoughto set ExternalSource and headers unknown to this module would haveHeaderFileInfo with empty fields, including `isImport = 0`, `NumIncludes = 0`.Such HeaderFileInfo was preserved without changes regardless of how theheader was used in other modules and caused incorrect result in`HeaderSearch::ShouldEnterIncludeFile`.Fix by marking HeaderFileInfo as Resolved only if ExternalSource knowsabout this header.rdar://problem/62126911Reviewed By: brunoDifferential Revision: https://reviews.llvm.org/D80263
show more ...