mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +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".
|
// 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…
x
Reference in New Issue
Block a user