]> granicus.if.org Git - clang/commit
[CFG] Fix crash finding destructor of lifetime-extended temporary.
authorDevin Coughlin <dcoughlin@apple.com>
Tue, 2 Aug 2016 21:07:23 +0000 (21:07 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Tue, 2 Aug 2016 21:07:23 +0000 (21:07 +0000)
commit5bd4129674050a155bcb76cc22289bbffaf2f930
tree97afe6cfad0830cdeaca6c660584af178d53fbb1
parent0f8c3e3eb83d55e0972d6f7c8b146606acda3d08
[CFG] Fix crash finding destructor of lifetime-extended temporary.

Fix a crash under -Wthread-safety when finding the destructor for a
lifetime-extending reference.

A patch by Nandor Licker!

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277522 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp