mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
fix the PointerLikeTypeTraits specialization for PointerIntPair to
allow the traits to be specified as well. llvm-svn: 68055
This commit is contained in:
parent
abcfb30fc2
commit
2d00a451cb
@ -125,8 +125,10 @@ struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType> > {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Teach SmallPtrSet that PointerIntPair is "basically a pointer".
|
// Teach SmallPtrSet that PointerIntPair is "basically a pointer".
|
||||||
template<typename PointerTy, unsigned IntBits, typename IntType>
|
template<typename PointerTy, unsigned IntBits, typename IntType,
|
||||||
class PointerLikeTypeTraits<PointerIntPair<PointerTy, IntBits, IntType> > {
|
typename PtrTraits>
|
||||||
|
class PointerLikeTypeTraits<PointerIntPair<PointerTy, IntBits, IntType,
|
||||||
|
PtrTraits> > {
|
||||||
public:
|
public:
|
||||||
static inline void *
|
static inline void *
|
||||||
getAsVoidPointer(const PointerIntPair<PointerTy, IntBits, IntType> &P) {
|
getAsVoidPointer(const PointerIntPair<PointerTy, IntBits, IntType> &P) {
|
||||||
|
Loading…
Reference in New Issue
Block a user