]> granicus.if.org Git - clang/commit
Fix regression in -Wreturn-type caused by not
authorTed Kremenek <kremenek@apple.com>
Tue, 25 Jan 2011 22:50:47 +0000 (22:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 25 Jan 2011 22:50:47 +0000 (22:50 +0000)
commitf39e6a388aaa2f155b46c61e655784b2473218eb
tree08715df98dcfadae77a5664eda0265cac3b56671
parentb7cd135215501a154eb4f68159f3af020783099e
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 [new file with mode: 0644]
test/SemaCXX/return-noreturn.cpp