aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-08-06 06:53:52 +0000
committerJohn McCall <rjmccall@apple.com>2011-08-06 06:53:52 +0000
commit82cd2e5c15aa909ec9613c4228ab69e07f1c6f7a (patch)
tree7644e11e92c394199fb14a811ba33824641a87c9 /lib/Sema/SemaCodeComplete.cpp
parentd8ee40732506ffd6de0a48e867b1e7e2f92bfcc1 (diff)
Be sure to destroy the normal entry block of a cleanup that we
aren't actually going to make a normal cleanup for. Sometimes we optimistically create branches to such blocks for fixups, and then we resolve the fixup to somewhere within the cleanup's scope, and then the cleanup is actually not reachable for some reason. The process of resolving the fixup leaves us with switches whose default edge leads to the cleanup; we can replace that with unreachable, then (in many cases) turn the switch into an unconditional branch. Fixes PR10467. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions