]> granicus.if.org Git - clang/commit
[index] Fix crash when indexing a C++14 PCH/module related to TemplateTemplateParmDec...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 26 Jan 2018 19:26:12 +0000 (19:26 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 26 Jan 2018 19:26:12 +0000 (19:26 +0000)
commitca1d83bc4fad52c8e3ea365a1fc1247c7dc6db40
tree3884ba991dc3216a5533d399c4941cab066434eb
parent71f3942a168f5298872a359d4cf9be2da98223b3
[index] Fix crash when indexing a C++14 PCH/module related to TemplateTemplateParmDecls of alias templates

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

Differential Revision: https://reviews.llvm.org/D42588

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323549 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Index/IndexDecl.cpp
lib/Serialization/ASTWriter.cpp
test/Index/Core/index-pch.cpp [new file with mode: 0644]