Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoodman committed Sep 26, 2023
1 parent 356c39c commit 76cd95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Lex/PPLexerChange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ bool Preprocessor::HandleEndOfTokenLexer(Token &Result) {
"Ending a macro when currently in a #include file!");

// Tell us about the end of macro expansions.
if (CurTokenLexer && CurTokenLexer->Macro) {
if (CurTokenLexer && CurTokenLexer->Macro && Callbacks) {
Callbacks->Event(CurTokenLexer->MacroNameTok,
PPCallbacks::EndMacroExpansion,
reinterpret_cast<uintptr_t>(CurTokenLexer->Macro));
Expand Down

0 comments on commit 76cd95d

Please sign in to comment.