[llvm] r371469 - Fix incorrect demangling of call operator of lambda with explicit

Richard Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 16:07:25 PDT 2019


Author: rsmith
Date: Mon Sep  9 16:07:25 2019
New Revision: 371469

URL: http://llvm.org/viewvc/llvm-project?rev=371469&view=rev
Log:
Fix incorrect demangling of call operator of lambda with explicit
template parameters due to registering template parameters twice.

Modified:
    llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h

Modified: llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h?rev=371469&r1=371468&r2=371469&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h (original)
+++ llvm/trunk/include/llvm/Demangle/ItaniumDemangle.h Mon Sep  9 16:07:25 2019
@@ -2358,9 +2358,6 @@ template <typename Derived, typename All
       assert(Parser->TemplateParams.size() >= OldNumTemplateParamLists);
       Parser->TemplateParams.dropBack(OldNumTemplateParamLists);
     }
-    void push_back(Node *Param) {
-      Params.push_back(Param);
-    }
   };
 
   // Template parameter table. Like the above, but referenced like "T42_".
@@ -2702,7 +2699,6 @@ AbstractManglingParser<Derived, Alloc>::
       Node *T = parseTemplateParamDecl();
       if (!T)
         return nullptr;
-      LambdaTemplateParams.push_back(T);
       Names.push_back(T);
     }
     NodeArray TempParams = popTrailingNodeArray(ParamsBegin);




More information about the llvm-commits mailing list