[WinEH] Don't forward branches across empty EH pad BBs
authorReid Kleckner <rnk@google.com>
Wed, 11 Nov 2015 23:09:31 +0000 (23:09 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 11 Nov 2015 23:09:31 +0000 (23:09 +0000)
commit758cf890e03ef9ee0d3398bb1750b72df737a496
tree9f71e09b16c262dbf4208ab11687c8971b13ee92
parent28d1976e2c58333bc1301d13a8da2ba733cac47f
[WinEH] Don't forward branches across empty EH pad BBs

For really simple SEH catchpads, we tried to forward the invoke unwind
edge across the empty block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252822 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
lib/CodeGen/MachineBasicBlock.cpp
test/CodeGen/X86/catchret-empty-fallthrough.ll [new file with mode: 0644]