]> granicus.if.org Git - clang/commit
Handle all TemplateArguments in trivial TypeLocs.
authorEli Friedman <eli.friedman@gmail.com>
Wed, 26 Jun 2013 23:30:50 +0000 (23:30 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 26 Jun 2013 23:30:50 +0000 (23:30 +0000)
commit33b90b34990a7738adebae30ef7ebf9d578ce9ae
treebb3136eecf8e01596c2a62592665f1ac4185e09c
parent418dd3eb3e813235af089b5c88182941f8a03d20
Handle all TemplateArguments in trivial TypeLocs.

Armed with a much better understanding of what
TemplateSpecializationTypeLoc::initializeArgLocs actually does, I now
understand that it's fine to just use an empty TemplateArgumentLocInfo
for Integral, Declaration, and NullPtr TemplateArguments.

Fixes PR14281. (The testcases are actually derived from libcxx_test in
deduction-crash.cpp because the original testcase was impossible to reduce.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185038 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/TypeLoc.cpp
test/SemaTemplate/deduction-crash.cpp