]> granicus.if.org Git - clang/commit
[-Wunreachable-code] generalize pruning out warning on trivial returns.
authorTed Kremenek <kremenek@apple.com>
Wed, 5 Mar 2014 23:46:07 +0000 (23:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 5 Mar 2014 23:46:07 +0000 (23:46 +0000)
commit63d540399b189955e6caf5b8024981eedd215a07
tree4e3c177e92af40562af8e7501a5e0c9b8233865c
parent3fa9b8e2c45eb398661c35f8cdc1f97492187b87
[-Wunreachable-code] generalize pruning out warning on trivial returns.

Previously we only pruned dead returns preceded by a call to a
'noreturn' function.  After looking at the results of the LLVM codebase,
there are many others that should be pruned as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203029 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ReachableCode.cpp
test/Sema/warn-unreachable.c