aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 316ad4c..8bf524b 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -12310,7 +12310,7 @@ grokdeclarator (const cp_declarator *declarator,
int attr_flags;
attr_flags = 0;
- if (declarator == NULL || declarator->kind == cdk_id)
+ if (declarator->kind == cdk_id)
attr_flags |= (int) ATTR_FLAG_DECL_NEXT;
if (declarator->kind == cdk_function)
attr_flags |= (int) ATTR_FLAG_FUNCTION_NEXT;