Fix regression in -Wreturn-type caused by not
commit6ecc360722b207b4962db629faa0d23dfb7876b6
authorTed Kremenek <kremenek@apple.com>
Tue, 25 Jan 2011 22:50:47 +0000 (25 22:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 25 Jan 2011 22:50:47 +0000 (25 22:50 +0000)
tree08715df98dcfadae77a5664eda0265cac3b56671
parent0fb6f97268c6024de25a43d1a25a7e8201c8f79f
Fix regression in -Wreturn-type caused by not
handling all CFGElement kinds.  While writing
the test case, it turned out that return-noreturn.cpp
wasn't actually testing anything since it has the wrong -W
flag.  That uncovered another regression with
the handling of destructors marked noreturn.  WIP.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124238 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp
test/SemaCXX/return-noreturn-XFAIL.cpp [copied from test/SemaCXX/return-noreturn.cpp with 77% similarity]
test/SemaCXX/return-noreturn.cpp