[cfe-commits] r59736 - /cfe/trunk/lib/Lex/PPMacroExpansion.cpp

Ted Kremenek kremenek at apple.com
Thu Nov 20 08:46:57 PST 2008


Author: kremenek
Date: Thu Nov 20 10:46:54 2008
New Revision: 59736

URL: http://llvm.org/viewvc/llvm-project?rev=59736&view=rev
Log:
Handle another case where we should use PTHLexer as an alternative to the normal Lexer.

Modified:
    cfe/trunk/lib/Lex/PPMacroExpansion.cpp

Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=59736&r1=59735&r2=59736&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Thu Nov 20 10:46:54 2008
@@ -119,6 +119,8 @@
       IncludeStackInfo &Entry = IncludeMacroStack[i-1];
       if (Entry.TheLexer)
         Val = Entry.TheLexer->isNextPPTokenLParen();
+      else if (Entry.ThePTHLexer)
+        Val = Entry.ThePTHLexer->isNextPPTokenLParen();
       else
         Val = Entry.TheTokenLexer->isNextTokenLParen();
       
@@ -126,7 +128,7 @@
         break;
       
       // Ran off the end of a source file?
-      if (Entry.TheLexer)
+      if (Entry.ThePPLexer)
         return false;
     }
   }





More information about the cfe-commits mailing list