Make the Verifier more strict about gc.statepoints
authorPhilip Reames <listmail@philipreames.com>
Wed, 3 Dec 2014 19:53:15 +0000 (19:53 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 3 Dec 2014 19:53:15 +0000 (19:53 +0000)
commit93ce526d0aee69e95cb46d45d911fa1b221fa6e6
treed5952569f87b0b2067a9bbe4e1b5f1aa9119ffcb
parentad304153f45581ae7a1d43721714ae72055e4183
Make the Verifier more strict about gc.statepoints

The recently added documentation for statepoints claimed that we checked the parameters of the various intrinsics for validity.  This patch adds the code to actually do so.  I also removed a couple of redundant checks for conditions which are checked elsewhere in the Verifier and simplified the logic using the helper functions from Statepoint.h.

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