aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2021-07-26 20:06:38 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2021-07-30 12:53:53 +0200
commitbaa1226c379a41fa620d77fe5aeb0a0da8163501 (patch)
tree35b9eff5e9743dedccfec52eaf35f1c21a9879bb /gcc
parent5ad4eab2e6ffc4c7f5a11f52239377eeae26310f (diff)
downloadgcc-baa1226c379a41fa620d77fe5aeb0a0da8163501.zip
gcc-baa1226c379a41fa620d77fe5aeb0a0da8163501.tar.gz
gcc-baa1226c379a41fa620d77fe5aeb0a0da8163501.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/d/typeinfo.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/d/typeinfo.cc b/gcc/d/typeinfo.cc
index c9126f4..978c73e 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
{