From 145cbef5879c7fba8bacc2f78cfa426400f52f42 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Tue, 29 Dec 2020 16:17:14 -0500 Subject: [PATCH] Copy demangle changes from libcxxabi to llvm with cp_to_llvm.sh. This includes changes from these commits: 5641b1dfddff847f7f3edc484537f9314c283225 8d313927539de66808e5bf3566fbd844aa78a916 --- llvm/include/llvm/Demangle/ItaniumDemangle.h | 8 ++++---- llvm/include/llvm/Demangle/Utility.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/Demangle/ItaniumDemangle.h b/llvm/include/llvm/Demangle/ItaniumDemangle.h index cef6175..6bfc02d 100644 --- a/llvm/include/llvm/Demangle/ItaniumDemangle.h +++ b/llvm/include/llvm/Demangle/ItaniumDemangle.h @@ -2371,9 +2371,9 @@ template struct AbstractManglingParser { TemplateParamList Params; public: - ScopedTemplateParamList(AbstractManglingParser *Parser) - : Parser(Parser), - OldNumTemplateParamLists(Parser->TemplateParams.size()) { + ScopedTemplateParamList(AbstractManglingParser *TheParser) + : Parser(TheParser), + OldNumTemplateParamLists(TheParser->TemplateParams.size()) { Parser->TemplateParams.push_back(&Params); } ~ScopedTemplateParamList() { @@ -5223,7 +5223,7 @@ Node *AbstractManglingParser::parseEncoding() { decltype(TemplateParams) OldParams; public: - SaveTemplateParams(AbstractManglingParser *Parser) : Parser(Parser) { + SaveTemplateParams(AbstractManglingParser *TheParser) : Parser(TheParser) { OldParams = std::move(Parser->TemplateParams); Parser->TemplateParams.clear(); } diff --git a/llvm/include/llvm/Demangle/Utility.h b/llvm/include/llvm/Demangle/Utility.h index 04e1936..846a5f0 100644 --- a/llvm/include/llvm/Demangle/Utility.h +++ b/llvm/include/llvm/Demangle/Utility.h @@ -52,7 +52,7 @@ class OutputStream { char *TempPtr = std::end(Temp); while (N) { - *--TempPtr = '0' + char(N % 10); + *--TempPtr = char('0' + N % 10); N /= 10; } -- 2.7.4