aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/expr.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2021-07-26 18:40:35 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2021-07-30 12:51:35 +0200
commit99d6d3d92f24c249314e0509f1ffa68f8450495e (patch)
tree01720a8940e9dc5ae82dd9452e6b111a8bf79f9b /gcc/d/expr.cc
parent3b52a1086c1358a7694ebe0c7610058c48e93b22 (diff)
downloadgcc-99d6d3d92f24c249314e0509f1ffa68f8450495e.zip
gcc-99d6d3d92f24c249314e0509f1ffa68f8450495e.tar.gz
gcc-99d6d3d92f24c249314e0509f1ffa68f8450495e.tar.bz2
d: Factor aggregate_initializer_decl to set the sinit for aggregate declarations.
The self-hosted implementation of the D front-end changes the type of `sinit' to a void pointer, which requires an explicit cast to `tree'. gcc/d/ChangeLog: * decl.cc (DeclVisitor::visit (StructDeclaration *)): Don't use sinit for declaration directly. (DeclVisitor::visit (ClassDeclaration *)): Likewise. (aggregate_initializer_decl): Likewise. Set sinit after creating.
Diffstat (limited to 'gcc/d/expr.cc')
0 files changed, 0 insertions, 0 deletions