d: Use new isTypeXxxx helpers where possible.
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 3 Jun 2020 13:26:25 +0000 (15:26 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 16 Jun 2020 21:31:24 +0000 (23:31 +0200)
commit89fdaf5ad853c3d55060b9929027946833aee77a
treebd31fe1405120ce155c606fb258d6944e6a6be6b
parent8fb4d1d58362b77da78c09740c6b5562124a369e
d: Use new isTypeXxxx helpers where possible.

gcc/d/ChangeLog:

* d-builtins.cc (d_eval_constant_expression): Use isTypeXxxx helpers
instead of explicit casts.
(d_build_builtins_module): Likewise.
* d-codegen.cc (get_array_length): Likewise.
(identity_compare_p): Likewise.
(lower_struct_comparison): Likewise.
(build_array_from_val): Likewise.
(array_bounds_check): Likewise.
(get_function_type): Likewise.
(d_build_call): Likewise.
* d-compiler.cc (Compiler::paintAsType): Likewise.
* d-convert.cc (convert_expr): Likewise.
(convert_for_assignment): Likewise.
* d-lang.cc (d_classify_record): Likewise.
(d_build_eh_runtime_type): Likewise.
* decl.cc (DeclVisitor::visit): Likewise.
* expr.cc (ExprVisitor::needs_postblit): Likewise.
(ExprVisitor::needs_dtor): Likewise.
(ExprVisitor::visit): Likewise.
* imports.cc (ImportVisitor::visit): Likewise.
* typeinfo.cc (get_typeinfo_kind): Likewise.
(TypeInfoVisitor::visit): Likewise.
(TypeDeclInfoVisitor::visit): Likewise.
* types.cc (merge_aggregate_types): Likewise.
(TypeVisitor::visit): Likewise.
gcc/d/d-builtins.cc
gcc/d/d-codegen.cc
gcc/d/d-compiler.cc
gcc/d/d-convert.cc
gcc/d/d-lang.cc
gcc/d/decl.cc
gcc/d/expr.cc
gcc/d/imports.cc
gcc/d/typeinfo.cc
gcc/d/types.cc