fix the PointerLikeTypeTraits specialization for PointerIntPair to
authorChris Lattner <sabre@nondot.org>
Mon, 30 Mar 2009 20:28:50 +0000 (20:28 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Mar 2009 20:28:50 +0000 (20:28 +0000)
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

include/llvm/ADT/PointerIntPair.h

index 19b71d43c92ff13b9aba5896dfe7085492f28fe4..43a083d21ec588df1489f1a5325d7f3144c1e5ea 100644 (file)
@@ -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) {