misprint in clang::ASTContext::getSubstTemplateTypeParmPackType

Hello,

Is there a misprint in clang::ASTContext::getSubstTemplateTypeParmPackType method?
The last lines should use collection SubstTemplateTypeParmPACKTypes, not SubstTemplateTypeParmTypes

  • SubstTemplateTypeParmTypes.InsertNode(SubstParm, InsertPos);
    return QualType(SubstParm, 0);
    =>
  • SubstTemplateTypeParmPackTypes.InsertNode(SubstParm, InsertPos);
    return QualType(SubstParm, 0);

otherwise not clear how InsertPos calcualted for SubstTemplateTypeParmPackTypes can be used in InsertNode for another collection

Hope it helps,
Vladimir.

Ping.
George, could you have a look at this misprint, please?

Thanks
Vladimir.

Thanks for bringing this up!

Definitely looks like a typo. Fixed in r305207. :slight_smile:

George