From ad94b452f59deb7b2854afd4c3a6464f36dd1808 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Wed, 14 Jun 2017 23:15:51 +0000 Subject: [PATCH] Update callbacks tracker to match change in 305425 llvm-svn: 305426 --- clang-tools-extra/pp-trace/PPCallbacksTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp b/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp index 2cf7a4468c39..d09cb9988313 100644 --- a/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp +++ b/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp @@ -590,7 +590,7 @@ void PPCallbacksTracker::appendArgument(const char *Name, SS << "["; // The argument tokens might include end tokens, so we reflect how // 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); int TokenCount = Value->getArgLength(Current) + 1; // include EOF E -= TokenCount;