From 701bc8ceb11c0090f61c1caa9d2efa9523006cc6 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 1 Nov 2013 23:08:38 +0000 Subject: [PATCH] Preload module maps in normal user directories, too. ... in case someone decides to -I/usr/include . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193893 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/HeaderSearch.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Lex/HeaderSearch.cpp b/lib/Lex/HeaderSearch.cpp index 2da2c9efba..9e43dda226 100644 --- a/lib/Lex/HeaderSearch.cpp +++ b/lib/Lex/HeaderSearch.cpp @@ -1173,9 +1173,8 @@ void HeaderSearch::collectAllModules(SmallVectorImpl &Modules) { void HeaderSearch::loadTopLevelSystemModules() { // Load module maps for each of the header search directories. for (unsigned Idx = 0, N = SearchDirs.size(); Idx != N; ++Idx) { - // We only care about normal system header directories. - if (!SearchDirs[Idx].isNormalDir() || - SearchDirs[Idx].getDirCharacteristic() != SrcMgr::C_System) { + // We only care about normal header directories. + if (!SearchDirs[Idx].isNormalDir()) { continue; } -- 2.40.0