diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Rewrite/TokenRewriter.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Rewrite/TokenRewriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/llvm/tools/clang/lib/Rewrite/TokenRewriter.cpp b/contrib/llvm/tools/clang/lib/Rewrite/TokenRewriter.cpp index 789d53f..03ce63e 100644 --- a/contrib/llvm/tools/clang/lib/Rewrite/TokenRewriter.cpp +++ b/contrib/llvm/tools/clang/lib/Rewrite/TokenRewriter.cpp @@ -34,10 +34,10 @@ TokenRewriter::TokenRewriter(FileID FID, SourceManager &SM, RawLex.LexFromRawLexer(RawTok); while (RawTok.isNot(tok::eof)) { #if 0 - if (Tok.is(tok::identifier)) { + if (Tok.is(tok::raw_identifier)) { // Look up the identifier info for the token. This should use // IdentifierTable directly instead of PP. - Tok.setIdentifierInfo(PP.LookUpIdentifierInfo(Tok)); + PP.LookUpIdentifierInfo(Tok); } #endif @@ -73,7 +73,7 @@ TokenRewriter::AddToken(const Token &T, TokenRefTy Where) { bool InsertSuccess = TokenAtLoc.insert(std::make_pair(T.getLocation(), Where)).second; assert(InsertSuccess && "Token location already in rewriter!"); - InsertSuccess = InsertSuccess; + (void)InsertSuccess; return Where; } |