From: Iain Buclaw Date: Mon, 26 Jul 2021 18:06:38 +0000 (+0200) Subject: d: Always layout initializer for the m_RTInfo field in TypeInfo_Class X-Git-Tag: basepoints/gcc-13~5691 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baa1226c379a41fa620d77fe5aeb0a0da8163501;p=thirdparty%2Fgcc.git d: Always layout initializer for the m_RTInfo field in TypeInfo_Class Makes it explicit that the default value is set to NULL. gcc/d/ChangeLog: * typeinfo.cc (TypeInfoVisitor::visit (TypeInfoClassDeclaration *)): Always layout initializer for the m_RTInfo field. --- diff --git a/gcc/d/typeinfo.cc b/gcc/d/typeinfo.cc index c9126f4c6b57..978c73e65f63 100644 --- a/gcc/d/typeinfo.cc +++ b/gcc/d/typeinfo.cc @@ -934,6 +934,8 @@ public: this->layout_field (build_expr (cd->getRTInfo, true)); else if (!(flags & ClassFlags::noPointers)) this->layout_field (size_one_node); + else + this->layout_field (null_pointer_node); } else {