]> granicus.if.org Git - clang/commit
[Sema] Don't work around a malformed AST
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 18 Nov 2015 19:49:19 +0000 (19:49 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 18 Nov 2015 19:49:19 +0000 (19:49 +0000)
commit1d4fa1ea4a1bc593dd542ecd202fd947e355a06a
tree54d3abd4063bd6f43b31797ca0bd31cf3d707069
parent889279f1c6fb3fcc284138d30d509e9abdff6ad3
[Sema] Don't work around a malformed AST

We created a malformed TemplateSpecializationType: it was dependent but
had a RecordType as it's canonical type.  This would lead getAs to
crash.  r249090 worked around this but we should fix this for real by
providing a more appropriate template specialization type as the
canonical type.

This fixes PR24246.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253495 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
lib/Sema/SemaTemplate.cpp