diff options
| author | Manuel Klimek <klimek@google.com> | 2014-05-23 17:09:56 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2014-05-23 17:09:56 +0000 |
| commit | a492ec1ecf375d529b431ef7ff18ea4ddedec549 (patch) | |
| tree | 962613d9d43c85a6e721b7a51f18c5fac552d1e6 /lib/Basic/FileSystemStatCache.cpp | |
| parent | 9c4a4a0c41a66c2e9f82e1897265583e218634dd (diff) | |
| download | clang-a492ec1ecf375d529b431ef7ff18ea4ddedec549.tar.gz clang-a492ec1ecf375d529b431ef7ff18ea4ddedec549.tar.bz2 clang-a492ec1ecf375d529b431ef7ff18ea4ddedec549.tar.xz | |
Make dead return statement detection more robust against changes in the CFG.
This change is a precondition to the proposed change to handle temporary
dtors correctly.
The idea is to explicitly search for the next return that doesn't have other
paths into it (that is, if the current block is dead, the block containing the
return must be dead, too). Thus, introducing non-control-flow block
transitions will not break the logic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions
