[WinEH] Insert the MBB for EH_RESTORE after the catchret
authorReid Kleckner <rnk@google.com>
Tue, 10 Nov 2015 23:22:20 +0000 (23:22 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 10 Nov 2015 23:22:20 +0000 (23:22 +0000)
commitd40a07ce4e3d16178f4295c49b88c4e1c8aa5758
tree9097570cfbcf1f46b1aaf20728e1df7c4378501a
parentcf6b336cdc5ac4f7dc4a76bb2b8f17f5d9581fe2
[WinEH] Insert the MBB for EH_RESTORE after the catchret

Inserting it before the target block could be bad, we might already have
a fallthrough edge to it.

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