summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-30 20:28:50 +0000
committerChris Lattner <sabre@nondot.org>2009-03-30 20:28:50 +0000
commit73acaa88627f68a6808d5d0e13feb922f6f90eaf (patch)
tree257bfdc818b46c9ecb10f3bdffce0cc8542369b8
parentff62c62b7c6987ee8274d20f65e2e69ec148911a (diff)
downloadbcm5719-llvm-73acaa88627f68a6808d5d0e13feb922f6f90eaf.tar.gz
bcm5719-llvm-73acaa88627f68a6808d5d0e13feb922f6f90eaf.zip
fix the PointerLikeTypeTraits specialization for PointerIntPair to
allow the traits to be specified as well. llvm-svn: 68055
-rw-r--r--llvm/include/llvm/ADT/PointerIntPair.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/PointerIntPair.h b/llvm/include/llvm/ADT/PointerIntPair.h
index 19b71d43c92..43a083d21ec 100644
--- a/llvm/include/llvm/ADT/PointerIntPair.h
+++ b/llvm/include/llvm/ADT/PointerIntPair.h
@@ -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) {
OpenPOWER on IntegriCloud