diff options
author | John McCall <rjmccall@apple.com> | 2011-10-18 01:36:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-10-18 01:36:41 +0000 |
commit | d80d90d65895a2004b0d01c67ac417cde6cc62fd (patch) | |
tree | 5daaa3cabc37fbe818e51d178f6b3b1725fd1d90 /lib/Lex/PPLexerChange.cpp | |
parent | 66f284632dc2e286e3abbd72bc1a44472f9117cc (diff) | |
download | clang-d80d90d65895a2004b0d01c67ac417cde6cc62fd.tar.gz clang-d80d90d65895a2004b0d01c67ac417cde6cc62fd.tar.bz2 clang-d80d90d65895a2004b0d01c67ac417cde6cc62fd.tar.xz |
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
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |