From d80d90d65895a2004b0d01c67ac417cde6cc62fd Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 18 Oct 2011 01:36:41 +0000 Subject: [PATCH] Argyrios says this change is required for safety under PTH. Me, I believe him. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142327 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/PPLexerChange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index dc6536427a..37b62a6d02 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -241,7 +241,7 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { // We don't want to complain about reaching the end of a macro // instantiation or a _Pragma. if (PragmaARCCFCodeAuditedLoc.isValid() && - !isEndOfMacro && CurLexer && !CurLexer->Is_PragmaLexer) { + !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { Diag(PragmaARCCFCodeAuditedLoc, diag::err_pp_eof_in_arc_cf_code_audited); // Recover by leaving immediately. -- 2.50.1