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 | 5fbdc93d9751317f493dd988f9f01ce98bf00222 (patch) | |
tree | 22beac0024f9dd5ccd9ecc137ea4228cc2ca0d69 /clang/lib/Basic/VirtualFileSystem.cpp | |
parent | a33815be22055f1c1e7b27ce5ffea12292f942f8 (diff) | |
download | llvm-5fbdc93d9751317f493dd988f9f01ce98bf00222.zip llvm-5fbdc93d9751317f493dd988f9f01ce98bf00222.tar.gz llvm-5fbdc93d9751317f493dd988f9f01ce98bf00222.tar.bz2 |
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.
llvm-svn: 209531
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions