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)
commit6cdbe3f6df12183dce2d4c98a59a47d51acf659d
tree2527da78e551e8dea2d35f9883d6fba396defc87
parent65d601f96c58cdcce9844a3973d178753dc0d9d3
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.

llvm-svn: 179073
llvm/include/llvm/ADT/PointerIntPair.h