summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-03-20 06:07:30 +0000
committerTed Kremenek <kremenek@apple.com>2014-03-20 06:07:30 +0000
commita80944a18dd23aab4628a38430fcde8f06397a2f (patch)
tree01666f09dea2c53fd527862d94303982f27be896 /lib/CodeGen/CodeGenFunction.cpp
parentae3c93f93ab471c337050d65c5f6535ae76ced35 (diff)
downloadclang-a80944a18dd23aab4628a38430fcde8f06397a2f.tar.gz
clang-a80944a18dd23aab4628a38430fcde8f06397a2f.tar.bz2
clang-a80944a18dd23aab4628a38430fcde8f06397a2f.tar.xz
[-Wunreachable-code] Simplify and broad -Wunreachable-code-return, including nontrivial returns.
The exception is return statements that include control-flow, which are clearly doing something "interesting". 99% of the cases I examined for -Wunreachable-code that fired on return statements were not interesting enough to warrant being in -Wunreachable-code by default. Thus the move to include them in -Wunreachable-code-return. This simplifies a bunch of logic, including removing the ad hoc logic to look for std::string literals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions