diff options
| -rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index e627c786407..beaef7636c6 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -617,8 +617,8 @@ const FileEntry *HeaderSearch::LookupFile( // from a module build. We should treat this as a system header if we're // building a [system] module. bool IncluderIsSystemHeader = - (Includer && getFileInfo(Includer).DirInfo != SrcMgr::C_User) || - (!Includer && BuildSystemModule); + Includer ? getFileInfo(Includer).DirInfo != SrcMgr::C_User : + BuildSystemModule; if (const FileEntry *FE = getFileAndSuggestModule( TmpDir, IncluderAndDir.second, IncluderIsSystemHeader, RequestingModule, SuggestedModule)) { |

