[cfe-commits] r142327 - /cfe/trunk/lib/Lex/PPLexerChange.cpp
John McCall
rjmccall at apple.com
Mon Oct 17 18:36:42 PDT 2011
Author: rjmccall
Date: Mon Oct 17 20:36:41 2011
New Revision: 142327
URL: http://llvm.org/viewvc/llvm-project?rev=142327&view=rev
Log:
Argyrios says this change is required for safety under PTH.
Me, I believe him.
Modified:
cfe/trunk/lib/Lex/PPLexerChange.cpp
Modified: cfe/trunk/lib/Lex/PPLexerChange.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPLexerChange.cpp?rev=142327&r1=142326&r2=142327&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPLexerChange.cpp (original)
+++ cfe/trunk/lib/Lex/PPLexerChange.cpp Mon Oct 17 20:36:41 2011
@@ -241,7 +241,7 @@
// 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.
More information about the cfe-commits
mailing list