[WinEH] Fix catchpad pred verification
authorJoseph Tremoulet <jotrem@microsoft.com>
Sun, 10 Jan 2016 04:32:03 +0000 (04:32 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Sun, 10 Jan 2016 04:32:03 +0000 (04:32 +0000)
commite2fff4f7f9edae5f497b226ace98d95494786a82
tree83e05afbcade655a2b3f904543973ee855d37279
parent12b6cd2e546a2fa001fdcb8bca0027e4dae45514
[WinEH] Fix catchpad pred verification

Summary:
The code was simply ensuring that the catchpad's pred is its catchswitch,
which was letting cases slip through where the flow edge was the unwind
edge of the catchswitch rather than one of its catch clauses.

Reviewers: andrew.w.kaylor, rnk, majnemer

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257275 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Verifier.cpp
test/Verifier/invalid-eh.ll