public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2622] d: Always layout initializer for the m_RTInfo field in TypeInfo_Class
@ 2021-07-30 10:56 Iain Buclaw
0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2021-07-30 10:56 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:baa1226c379a41fa620d77fe5aeb0a0da8163501
commit r12-2622-gbaa1226c379a41fa620d77fe5aeb0a0da8163501
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Mon Jul 26 20:06:38 2021 +0200
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:
---
gcc/d/typeinfo.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/d/typeinfo.cc b/gcc/d/typeinfo.cc
index c9126f4c6b5..978c73e65f6 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
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-30 10:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 10:56 [gcc r12-2622] d: Always layout initializer for the m_RTInfo field in TypeInfo_Class Iain Buclaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).