diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-20 04:52:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-20 04:52:59 +0000 |
commit | 08ba4c015f3260b20f9bd5ceaf7951da317e74f7 (patch) | |
tree | 260c49feb0e3dafa9b1f3be89ac5b195a3f512d7 /clang/Lex/MacroExpander.cpp | |
parent | 510ab61fd3c52c25cbc474f2c4f1c0e0312ef381 (diff) | |
download | bcm5719-llvm-08ba4c015f3260b20f9bd5ceaf7951da317e74f7.tar.gz bcm5719-llvm-08ba4c015f3260b20f9bd5ceaf7951da317e74f7.zip |
fix obvious bug that caused Preprocessor/macro_paste_bad.c to fail.
llvm-svn: 38748
Diffstat (limited to 'clang/Lex/MacroExpander.cpp')
-rw-r--r-- | clang/Lex/MacroExpander.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Lex/MacroExpander.cpp b/clang/Lex/MacroExpander.cpp index a8e53258da3..38970eca510 100644 --- a/clang/Lex/MacroExpander.cpp +++ b/clang/Lex/MacroExpander.cpp @@ -456,7 +456,7 @@ void MacroExpander::PasteTokens(LexerToken &Tok) { 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); |