[WinEH] Stop BranchFolding from merging across funclets
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 1 Oct 2015 21:04:13 +0000 (21:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 1 Oct 2015 21:04:13 +0000 (21:04 +0000)
commit0955fc316218c839658feddf1d1464f158b78f0f
tree52ae19a36f102d95ff141b26ff1f4f503fb44d82
parent4f717f68fb59b3675d704e04eca68a4a0f9f1a3f
[WinEH] Stop BranchFolding from merging across funclets

BranchFolding would merge two funclets together, this is not OK.
Disable this and strengthen the assertion in FuncletLayout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249069 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
lib/CodeGen/FuncletLayout.cpp
test/CodeGen/X86/funclet-layout.ll