summaryrefslogtreecommitdiffstats
path: root/gcc/cp/friend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r--gcc/cp/friend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index 20bb5d82721..fee00a8cf35 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -42,7 +42,7 @@ is_friend (type, supplicant)
if (supplicant == NULL_TREE || type == NULL_TREE)
return 0;
- declp = (TREE_CODE_CLASS (TREE_CODE (supplicant)) == 'd');
+ declp = DECL_P (supplicant);
if (declp)
/* It's a function decl. */
OpenPOWER on IntegriCloud