aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-15 14:38:46 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-25 23:19:12 +0200
commit3ba7f29e393c28861e15e113ed3c9698bd00ef6f (patch)
tree74453de14155052aa74bd5ad01309e01844952c2
parent1069b76d5bef127e98beb600cf279bba1fbd6163 (diff)
downloadsparse-3ba7f29e393c28861e15e113ed3c9698bd00ef6f.tar.gz
attribute: directly use attribute_specifier() to handle attributes
handle_attributes() used to also handle asm names and so used the declarator method associated to the taken. But now, asm names are handled in a separated function. So, directly use attribute_specifier() to handle the attributes instead of using it via the declarator method. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index ec675f20..14b1746d 100644
--- a/parse.c
+++ b/parse.c
@@ -1816,7 +1816,7 @@ static struct token *handle_attributes(struct token *token, struct decl_state *c
break;
if (!(keyword->op->type & KW_ATTRIBUTE))
break;
- token = keyword->op->declarator(token->next, ctx);
+ token = attribute_specifier(token->next, ctx);
}
return token;
}