Fix PointerIntPair to be enum class compatible.
authorJoe Groff <arcata@gmail.com>
Tue, 9 Apr 2013 00:01:51 +0000 (00:01 +0000)
committerJoe Groff <arcata@gmail.com>
Tue, 9 Apr 2013 00:01:51 +0000 (00:01 +0000)
commitb3d25a940cfd44ffbac71adc6d8f3759ad8a8cb4
tree375fc1af06591b62b49770d4c4aee244996e131c
parent3388589fc102b873ee9b73ffdab0f532ee3ceda6
Fix PointerIntPair to be enum class compatible.

Some parts of PointerIntPair assumed that the IntType of the pair was implicitly
convertible to intptr_t, which is not the case for enum class values. Add a
static_cast<intptr_t> to make these conversions explicit and allow
PointerIntPair to be used with an enum class IntType. While we're here, rename
some of the argument values so we don't have variables named "Int" floating
around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179073 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/PointerIntPair.h