diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/ImmutableList.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h index de6af7d..9dde0db 100644 --- a/include/llvm/ADT/ImmutableList.h +++ b/include/llvm/ADT/ImmutableList.h @@ -194,6 +194,11 @@ public: //===----------------------------------------------------------------------===// // Partially-specialized Traits. //===----------------------------------------------------------------------===// +template<typename T> struct FoldingSetTrait<const T*> { + static inline void Profile(const T* X, FoldingSetNodeID& ID) { + ID.AddPointer(X); + } +}; template<typename T> struct DenseMapInfo; template<typename T> struct DenseMapInfo<ImmutableList<T> > { |