]> granicus.if.org Git - clang/commitdiff
Argyrios says this change is required for safety under PTH.
authorJohn McCall <rjmccall@apple.com>
Tue, 18 Oct 2011 01:36:41 +0000 (01:36 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 18 Oct 2011 01:36:41 +0000 (01:36 +0000)
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

index dc6536427a214c49aed33cdd331b8d7d2c72fb24..37b62a6d0251a4112bfed4873d0cffb4f3e3bd64 100644 (file)
@@ -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.