From: Yaron Keren Date: Sun, 16 Apr 2017 15:53:19 +0000 (+0000) Subject: Use setUsedForHeaderGuard() accessor function instead of direcly accessing UsedForHea... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=380d805e6e18df6a276cd0f1dc67b573477d0cdd;p=clang Use setUsedForHeaderGuard() accessor function instead of direcly accessing UsedForHeaderGuard. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300423 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index 4db17c344b..cf0c953b61 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -303,9 +303,8 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { if (const FileEntry *FE = CurPPLexer->getFileEntry()) { HeaderInfo.SetFileControllingMacro(FE, ControllingMacro); if (MacroInfo *MI = - getMacroInfo(const_cast(ControllingMacro))) { - MI->UsedForHeaderGuard = true; - } + getMacroInfo(const_cast(ControllingMacro))) + MI->setUsedForHeaderGuard(true); if (const IdentifierInfo *DefinedMacro = CurPPLexer->MIOpt.GetDefinedMacro()) { if (!isMacroDefined(ControllingMacro) &&