]> granicus.if.org Git - clang/commit
PR5863: Don't erase unreachable BBs which have an associated cleanup size.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 23 May 2010 20:00:44 +0000 (20:00 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 23 May 2010 20:00:44 +0000 (20:00 +0000)
commit92b9bd96ce25630f73717965fcaf4b5a761e49e5
tree03e854ab61ce4e1a671e95c14e1b12d1451ee94c
parenta481ec4150ad203440852a2bfee0883dd26f7530
PR5863: Don't erase unreachable BBs which have an associated cleanup size.

This works around a crash where malloc reused the memory of an erased BB for a
new BB leaving old cleanup information pointing at the new block.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104472 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
test/CodeGenCXX/PR5863-unreachable-block.cpp [new file with mode: 0644]