d: Use toTypeFunction instead of explicit cast
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 15 Jun 2020 14:56:02 +0000 (16:56 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 16 Jun 2020 21:33:26 +0000 (23:33 +0200)
commit6c4db916e28bf97a729ec06ff71da03963f0f7e4
treeeabf2e31908e50431f3c24f88c45ee96010b6a5e
parent89fdaf5ad853c3d55060b9929027946833aee77a
d: Use toTypeFunction instead of explicit cast

gcc/d/ChangeLog:

* d-frontend.cc (eval_builtin): Use toTypeFunction instead of cast.
* decl.cc (DeclVisitor::visit): Likewise.
* toir.cc (IRVisitor::visit): Likewise.
* typeinfo.cc (TypeInfoVisitor::visit): Likewise.
gcc/d/d-frontend.cc
gcc/d/decl.cc
gcc/d/toir.cc
gcc/d/typeinfo.cc