summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-03-07 07:14:36 +0000
committerTed Kremenek <kremenek@apple.com>2014-03-07 07:14:36 +0000
commit2bd39692ca0b5b64d00e3f1b36239f83fae0c6f7 (patch)
treed8c07219627150c27dc441833105f6b248bc4319 /lib/CodeGen/CGExprConstant.cpp
parent9f36327e3df8d2a4e89109b86eb610d84a13b4b9 (diff)
downloadclang-2bd39692ca0b5b64d00e3f1b36239f83fae0c6f7.tar.gz
clang-2bd39692ca0b5b64d00e3f1b36239f83fae0c6f7.tar.bz2
clang-2bd39692ca0b5b64d00e3f1b36239f83fae0c6f7.tar.xz
Fix recent regressions in -Wreturn-type caused by heuristics to -Wunreachable-code.
I had forgotten that the same reachability code is used by both -Wreturn-type and -Wunreachable-code, so the heuristics applied to the latter were indirectly impacting the former. To address this, the reachability code is more refactored so that whiled the logic at its core is shared, the intention of the clients are better captured and segregated in helper APIs. Fixes PR19074, and also some false positives reported offline to me by Nick Lewycky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions