Skip to content
Snippets Groups Projects
Commit 49e4579a authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Preprocessor::isCurrentLexer() now takes a PreprocessorLexer* argument to...

Preprocessor::isCurrentLexer() now takes a PreprocessorLexer* argument to match against CurPPLexer instead of CurLexer.

llvm-svn: 59721
parent e15a5400
No related branches found
No related tags found
No related merge requests found
...@@ -204,8 +204,8 @@ public: ...@@ -204,8 +204,8 @@ public:
/// isCurrentLexer - Return true if we are lexing directly from the specified /// isCurrentLexer - Return true if we are lexing directly from the specified
/// lexer. /// lexer.
bool isCurrentLexer(const Lexer *L) const { bool isCurrentLexer(const PreprocessorLexer *L) const {
return CurLexer.get() == L; return CurPPLexer == L;
} }
/// getCurrentLexer - Return the current file lexer being lexed from. Note /// getCurrentLexer - Return the current file lexer being lexed from. Note
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment