[Sema] Relax a failing assert in TemplateArgumentLoc
authorErik Pilkington <erik.pilkington@gmail.com>
Tue, 31 Jul 2018 00:18:30 +0000 (00:18 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Tue, 31 Jul 2018 00:18:30 +0000 (00:18 +0000)
commitca019e745dc59fd04dfb4466090d1c3f29fd5620
tree6a7a222e1e11d0f2c84941bdd80b1ca59cfa24d8
parent1e8c164c633bfb2c0fa43cba14a5078ebf40bd73
[Sema] Relax a failing assert in TemplateArgumentLoc

Any of these template argument kinds can be represented with an expression, so
accept them in this constructor.

Patch by Balaji Iyer!

rdar://41459965

Differential revision: https://reviews.llvm.org/D49766

llvm-svn: 338338
clang/include/clang/AST/TemplateBase.h
clang/test/SemaObjCXX/class-templ-error-null-init.mm [new file with mode: 0644]