Index: clang/lib/Lex/HeaderSearch.cpp =================================================================== --- clang/lib/Lex/HeaderSearch.cpp +++ clang/lib/Lex/HeaderSearch.cpp @@ -415,7 +415,9 @@ FixupSearchPath(); return *Result; } - } else if (auto Res = HS.getFileMgr().getOptionalFileRef(Dest)) { + // If lookup failed, fall back to file lookup using relative path directly. + } + if (auto Res = HS.getFileMgr().getOptionalFileRef(Dest)) { FixupSearchPath(); return *Res; }