[WinEH] Fix CatchRetSuccessorColorMap accounting
authorJoseph Tremoulet <jotrem@microsoft.com>
Fri, 16 Oct 2015 21:22:54 +0000 (21:22 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Fri, 16 Oct 2015 21:22:54 +0000 (21:22 +0000)
commitddcfde9768d8277f51395dee7201395888d239ba
treeaf9c3b331c959a8d1d71dd31ba27029cfc69cd1c
parentbde51df7533ea93e1c12702015c99562f98d6d21
[WinEH] Fix CatchRetSuccessorColorMap accounting

Summary:
We now use the block for the catchpad itself, rather than its normal
successor, as the funclet entry.
Putting the normal successor in the map leads downstream funclet
membership computations to erroneous results.

Reviewers: majnemer, rnk

Subscribers: rnk, llvm-commits

Differential Revision: http://reviews.llvm.org/D13798

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250552 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/WinEHPrepare.cpp
test/CodeGen/X86/win-catchpad-nested.ll [new file with mode: 0644]