[D] Move building of typeof(null) values to a common function.
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 15 Jan 2019 23:02:43 +0000 (23:02 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Tue, 15 Jan 2019 23:02:43 +0000 (23:02 +0000)
commit5e95646e734c1c64ea4e1a761b414581534e1d8c
treee0b659e37a70ed3996d8c7a6fee4ea09e1587cd2
parent37879e01616f2031866ddbbeff5f30e562e7baac
[D] Move building of typeof(null) values to a common function.

gcc/d/ChangeLog:

* d-codegen.cc (build_typeof_null_value): New function.
* d-tree.h (build_typeof_null_value): Declare.
* d-convert.cc (convert_expr): Use build_typeof_null_value.
* expr.cc (ExprVisitor::visit(NullExp)): Likewise.

From-SVN: r267955
gcc/d/ChangeLog
gcc/d/d-codegen.cc
gcc/d/d-convert.cc
gcc/d/d-tree.h
gcc/d/expr.cc