diff options
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index 087bd1d..082e62d 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -976,7 +976,8 @@ Optional<FileEntryRef> HeaderSearch::LookupFile( // this is a matching hit. if (!SkipCache && CacheLookup.StartIt == NextIt) { // Skip querying potentially lots of directories for this lookup. - It = CacheLookup.HitIt; + if (CacheLookup.HitIt) + It = CacheLookup.HitIt; if (CacheLookup.MappedName) { Filename = CacheLookup.MappedName; if (IsMapped) |