aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-attribs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/d-attribs.cc')
-rw-r--r--gcc/d/d-attribs.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/d/d-attribs.cc b/gcc/d/d-attribs.cc
index 04f7f16..90e72e3 100644
--- a/gcc/d/d-attribs.cc
+++ b/gcc/d/d-attribs.cc
@@ -426,7 +426,8 @@ build_attributes (Expressions *eattrs)
void
apply_user_attributes (Dsymbol *sym, tree node)
{
- if (!sym->userAttribDecl)
+ UserAttributeDeclaration *uda = sym->userAttribDecl ();
+ if (uda == NULL)
return;
location_t saved_location = input_location;
@@ -436,7 +437,7 @@ apply_user_attributes (Dsymbol *sym, tree node)
if (TYPE_P (node) && !COMPLETE_TYPE_P (node))
attr_flags |= ATTR_FLAG_TYPE_IN_PLACE;
- Expressions *attrs = sym->userAttribDecl->getAttributes ();
+ Expressions *attrs = uda->getAttributes ();
decl_attributes (&node, build_attributes (attrs), attr_flags);
input_location = saved_location;