[Statepoints][NFC] Add Statepoint::operator bool()
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 2 Jul 2015 02:53:36 +0000 (02:53 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 2 Jul 2015 02:53:36 +0000 (02:53 +0000)
commit05a5f1d63745a58c6bbcbfb96025b59c91df098f
tree95e73433bbb0f833a42b3f95cf78c7930ef4fd82
parentc720b8690d78e2f1685495893211ed354f3cda9f
[Statepoints][NFC] Add Statepoint::operator bool()

Summary:
This allows the "if (Statepoint SP = Statepoint(I))" idiom.

(I don't think this change needs review, this was uploaded to
phabricator to provide context for later dependent changes.)

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241232 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Statepoint.h