diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-06-25 17:07:16 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-06-25 17:07:16 +0000 |
commit | fc17926acd3037f77501798862b70b5b194002eb (patch) | |
tree | 992c9461a36806ad8c4dfe5550b3400f418b237a /gcc/hash-traits.h | |
parent | 4c1177e161e329b741e7b5ae55950fe65dfc8df5 (diff) | |
download | gcc-fc17926acd3037f77501798862b70b5b194002eb.zip gcc-fc17926acd3037f77501798862b70b5b194002eb.tar.gz gcc-fc17926acd3037f77501798862b70b5b194002eb.tar.bz2 |
hash-traits.h (typed_noop_remove): Don't require a pointer type.
gcc/
* hash-traits.h (typed_noop_remove): Don't require a pointer type.
From-SVN: r224963
Diffstat (limited to 'gcc/hash-traits.h')
-rw-r--r-- | gcc/hash-traits.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/hash-traits.h b/gcc/hash-traits.h index 5fd43f1..c8314e5 100644 --- a/gcc/hash-traits.h +++ b/gcc/hash-traits.h @@ -44,7 +44,7 @@ typed_free_remove <Type>::remove (Type *p) template <typename Type> struct typed_noop_remove { - static inline void remove (Type *p); + static inline void remove (Type &); }; @@ -52,7 +52,7 @@ struct typed_noop_remove template <typename Type> inline void -typed_noop_remove <Type>::remove (Type *p ATTRIBUTE_UNUSED) +typed_noop_remove <Type>::remove (Type &) { } @@ -169,7 +169,7 @@ struct ggc_cache_remove : ggc_remove<T> is deleted. */ template <typename T> -struct nofree_ptr_hash : pointer_hash <T>, typed_noop_remove <T> {}; +struct nofree_ptr_hash : pointer_hash <T>, typed_noop_remove <T *> {}; /* Traits for pointer elements that should be freed via free() when an element is deleted. */ |