diff options
Diffstat (limited to 'Lex')
-rw-r--r-- | Lex/HeaderSearch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lex/HeaderSearch.cpp b/Lex/HeaderSearch.cpp index 96c86939b7..00a36eef63 100644 --- a/Lex/HeaderSearch.cpp +++ b/Lex/HeaderSearch.cpp @@ -329,7 +329,8 @@ bool HeaderSearch::ShouldEnterIncludeFile(const FileEntry *File, bool isImport){ // Next, check to see if the file is wrapped with #ifndef guards. If so, and // if the macro that guards it is defined, we know the #include has no effect. - if (FileInfo.ControllingMacro && FileInfo.ControllingMacro->getMacroInfo()) { + if (FileInfo.ControllingMacro && + FileInfo.ControllingMacro->hasMacroDefinition()) { ++NumMultiIncludeFileOptzn; return false; } |