r269794 - NFC: simplify logic.
Manman Ren via cfe-commits
cfe-commits at lists.llvm.org
Tue May 17 11:04:38 PDT 2016
Author: mren
Date: Tue May 17 13:04:38 2016
New Revision: 269794
URL: http://llvm.org/viewvc/llvm-project?rev=269794&view=rev
Log:
NFC: simplify logic.
Modified:
cfe/trunk/lib/Lex/HeaderSearch.cpp
Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/HeaderSearch.cpp?rev=269794&r1=269793&r2=269794&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/HeaderSearch.cpp (original)
+++ cfe/trunk/lib/Lex/HeaderSearch.cpp Tue May 17 13:04:38 2016
@@ -617,8 +617,8 @@ const FileEntry *HeaderSearch::LookupFil
// 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)) {
More information about the cfe-commits
mailing list