This patch fixes a bug in the demangler where a pack expansion template parameter substitution with more than one element in a lambda's parameter list resulted in either a misdemangle or a crash. I'll commit this change to ItaniumDemangle.cpp as well, as it has the same problem.
rdar://32098667
Thanks for taking a look,
Erik
I'm not sure how k1 can be < than k0. Isn't this effectively always going down the == path? If I'm just mistaken, then I think that this needs a comment.