Update callbacks tracker to match change in 305425

llvm-svn: 305426
This commit is contained in:
Erich Keane 2017-06-14 23:15:51 +00:00
parent 8691d6e678
commit ad94b452f5
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ void PPCallbacksTracker::appendArgument(const char *Name,
SS << "["; SS << "[";
// The argument tokens might include end tokens, so we reflect how // The argument tokens might include end tokens, so we reflect how
// how getUnexpArgument provides the arguments. // how getUnexpArgument provides the arguments.
for (int I = 0, E = Value->getNumArguments(); I < E; ++I) { for (int I = 0, E = Value->getNumMacroArguments(); I < E; ++I) {
const clang::Token *Current = Value->getUnexpArgument(I); const clang::Token *Current = Value->getUnexpArgument(I);
int TokenCount = Value->getArgLength(Current) + 1; // include EOF int TokenCount = Value->getArgLength(Current) + 1; // include EOF
E -= TokenCount; E -= TokenCount;