Teach -Wreturn-type that destructors can appear
authorTed Kremenek <kremenek@apple.com>
Wed, 26 Jan 2011 04:49:52 +0000 (04:49 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 26 Jan 2011 04:49:52 +0000 (04:49 +0000)
commit5811f5978feaa7b89bd89e174fa7ad077b48413e
tree43d44683e7027e64bf09864319d89643df0d1523
parentfd6b874f3af26bc64a1d5781833c197b314afb8b
Teach -Wreturn-type that destructors can appear
after a 'return' in a CFGBlock.  This accidentally
was working before, but the false assumption that
'return' always appeared at the end of the block
was uncovered by a recent change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124280 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp
test/SemaCXX/warn-missing-noreturn.cpp