diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-18 06:44:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-18 06:44:18 +0000 |
| commit | 35dd5056fc8b729b6e7af69b7c7e1ee70a5cd85c (patch) | |
| tree | f210da96169920d064871ae45d1fe98a52b33aa5 /clang/lib/Lex | |
| parent | 5ca5d40cf4092bc55781e32b92525c6b4ce4c446 (diff) | |
| download | bcm5719-llvm-35dd5056fc8b729b6e7af69b7c7e1ee70a5cd85c.tar.gz bcm5719-llvm-35dd5056fc8b729b6e7af69b7c7e1ee70a5cd85c.zip | |
fix PR3927 by being more careful about the pp test for identifier.
llvm-svn: 69423
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index a682e86d146..7e695a542b0 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -335,7 +335,7 @@ MacroArgs *Preprocessor::ReadFunctionLikeMacroArgs(Token &MacroName, // If this is a comment token in the argument list and we're just in // -C mode (not -CC mode), discard the comment. continue; - } else if (Tok.is(tok::identifier)) { + } else if (Tok.getIdentifierInfo() != 0) { // Reading macro arguments can cause macros that we are currently // expanding from to be popped off the expansion stack. Doing so causes // them to be reenabled for expansion. Here we record whether any |

