[cfe-dev] misprint in clang::ASTContext::getSubstTemplateTypeParmPackType

Vladimir Voskresensky via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 9 06:27:36 PDT 2017


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

Thanks
Vladimir.

On 06/ 6/17 07:48 PM, Vladimir Voskresensky via cfe-dev wrote:
> Hello,
>
> Is there a misprint in 
> clang::ASTContext::getSubstTemplateTypeParmPackType method?
> The last lines should use collection SubstTemplateTypeParm*PACK*Types, 
> 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.
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170609/fc9f75e2/attachment.html>


More information about the cfe-dev mailing list