summaryrefslogtreecommitdiff
path: root/gcc/cp/friend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r--gcc/cp/friend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index 75551a9678e..1310a93d02b 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -337,8 +337,7 @@ do_friend (tree ctype, tree declarator, tree decl,
declarator = DECL_NAME (get_first_fn (declarator));
}
- if (TREE_CODE (decl) != FUNCTION_DECL)
- abort ();
+ gcc_assert (TREE_CODE (decl) == FUNCTION_DECL);
if (ctype)
{