This is an archive of the discontinued LLVM Phabricator instance.

[index] Fix crash when indexing a C++14 PCH/module related to TemplateTemplateParmDecls of alias templates
ClosedPublic

Authored by akyrtzi on Jan 26 2018, 10:47 AM.

Details

Summary

TemplateTemplateParmDecls of alias templates ended-up serialized as 'file-level decls' which was causing a crash while trying to index a PCH/module file that contained them.
Commit makes sure TemplateTemplateParmDecls are not recorded as such kind of decls.

Fixes crash of rdar://36608297

Diff Detail

Event Timeline

akyrtzi created this revision.Jan 26 2018, 10:47 AM
nathawes accepted this revision.Jan 26 2018, 10:58 AM

Looks good to me!

This revision is now accepted and ready to land.Jan 26 2018, 10:58 AM
This revision was automatically updated to reflect the committed changes.