aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
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
commitc6a4b6b78b9262ad6a343a4edae88611ef970669 (patch)
tree9ba45cb5bccc019416eb3f8b516db4fa4c82cd86 /include/llvm/ADT
parent6d1b89e74f98470d05666ca9f59a8ec5d04b5eb4 (diff)
downloadexternal_llvm-c6a4b6b78b9262ad6a343a4edae88611ef970669.zip
external_llvm-c6a4b6b78b9262ad6a343a4edae88611ef970669.tar.gz
external_llvm-c6a4b6b78b9262ad6a343a4edae88611ef970669.tar.bz2
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
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/PointerIntPair.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h
index 19b71d4..43a083d 100644
--- a/include/llvm/ADT/PointerIntPair.h
+++ b/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) {