[cfe-commits] r38748 - /cfe/cfe/trunk/Lex/MacroExpander.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:24:18 PDT 2007


Author: sabre
Date: Wed Jul 11 11:24:18 2007
New Revision: 38748

URL: http://llvm.org/viewvc/llvm-project?rev=38748&view=rev
Log:
fix obvious bug that caused Preprocessor/macro_paste_bad.c to fail.

Modified:
    cfe/cfe/trunk/Lex/MacroExpander.cpp

Modified: cfe/cfe/trunk/Lex/MacroExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/MacroExpander.cpp?rev=38748&r1=38747&r2=38748&view=diff

==============================================================================
--- cfe/cfe/trunk/Lex/MacroExpander.cpp (original)
+++ cfe/cfe/trunk/Lex/MacroExpander.cpp Wed Jul 11 11:24:18 2007
@@ -456,7 +456,7 @@
     if (Tok.getKind() == tok::slash && RHS.getKind() == tok::star) {
       isInvalid = true;
     } else if (Tok.getKind() == tok::identifier && 
-               Tok.getKind() == tok::identifier) {
+               RHS.getKind() == tok::identifier) {
       // Common paste case: identifier+identifier = identifier.  Avoid creating
       // a lexer and other overhead.
       PP.IncrementPasteCounter(true);





More information about the cfe-commits mailing list