mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
fix the PointerLikeTypeTraits specialization for PointerIntPair to
allow the traits to be specified as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68055 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6d1b89e74f
commit
c6a4b6b78b
@ -125,8 +125,10 @@ struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType> > {
|
||||
};
|
||||
|
||||
// Teach SmallPtrSet that PointerIntPair is "basically a pointer".
|
||||
template<typename PointerTy, unsigned IntBits, typename IntType>
|
||||
class PointerLikeTypeTraits<PointerIntPair<PointerTy, IntBits, IntType> > {
|
||||
template<typename PointerTy, unsigned IntBits, typename IntType,
|
||||
typename PtrTraits>
|
||||
class PointerLikeTypeTraits<PointerIntPair<PointerTy, IntBits, IntType,
|
||||
PtrTraits> > {
|
||||
public:
|
||||
static inline void *
|
||||
getAsVoidPointer(const PointerIntPair<PointerTy, IntBits, IntType> &P) {
|
||||
|
Loading…
Reference in New Issue
Block a user