aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-codegen.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-15 17:39:12 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-06-16 23:33:58 +0200
commitd873350a9c402a64cc333ef470131d427cf56b28 (patch)
treeec6eec46d4a04dfdb16d314e9e36fa69d2e93081 /gcc/d/d-codegen.cc
parent6c4db916e28bf97a729ec06ff71da03963f0f7e4 (diff)
downloadgcc-d873350a9c402a64cc333ef470131d427cf56b28.zip
gcc-d873350a9c402a64cc333ef470131d427cf56b28.tar.gz
gcc-d873350a9c402a64cc333ef470131d427cf56b28.tar.bz2
d: Use new isXxxxExp helpers where possible
gcc/d/ChangeLog: * d-attribs.cc (build_attributes): Use isXxxxExp helpers instead of explicit casts. * d-codegen.cc (d_build_call): Likewise. * d-compiler.cc (Compiler::paintAsType): Likewise. * decl.cc (ExprVisitor::visit): Likewise. (layout_class_initializer): Likewise. * expr.cc (ExprVisitor::lvalue_p): Likewise (ExprVisitor::visit): Likewise. * types.cc (layout_aggregate_members): Likewise.
Diffstat (limited to 'gcc/d/d-codegen.cc')
-rw-r--r--gcc/d/d-codegen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/d/d-codegen.cc b/gcc/d/d-codegen.cc
index 1bf74e1..d31638e 100644
--- a/gcc/d/d-codegen.cc
+++ b/gcc/d/d-codegen.cc
@@ -1874,7 +1874,7 @@ d_build_call (TypeFunction *tf, tree callable, tree object,
if (arg->op == TOKcomma)
{
- CommaExp *ce = (CommaExp *) arg;
+ CommaExp *ce = arg->isCommaExp ();
tree tce = build_expr (ce->e1);
saved_args = compound_expr (saved_args, tce);
(*arguments)[i] = ce->e2;