summaryrefslogtreecommitdiff
path: root/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-18 01:36:41 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-18 01:36:41 +0000
commitd80d90d65895a2004b0d01c67ac417cde6cc62fd (patch)
tree5daaa3cabc37fbe818e51d178f6b3b1725fd1d90 /lib/Lex/PPLexerChange.cpp
parent66f284632dc2e286e3abbd72bc1a44472f9117cc (diff)
downloadclang-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.cpp2
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.