]> granicus.if.org Git - clang/commit
[Sema] Fix crash in getConstructorName.
authorIlya Biryukov <ibiryukov@google.com>
Wed, 4 Jul 2018 08:50:12 +0000 (08:50 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 4 Jul 2018 08:50:12 +0000 (08:50 +0000)
commitc8c9b4da91fdf2e1bd938704f419763a969b56ed
tree3ab271057c89c576f7602693c095b6c88c63c377
parent4f874f4052f3375bfbd0d3a7655ee049d3cccdd8
[Sema] Fix crash in getConstructorName.

Summary:
Can happen when getConstructorName is called on invalid decls,
specifically the ones that do not have the injected class name.

Reviewers: bkramer, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336244 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/injected-class-name-crash.cpp [new file with mode: 0644]