diff mbox series

[committed] d: Update comment for TypeInfoVisitor::layout_base

Message ID 20210829163403.2036663-1-ibuclaw@gdcproject.org
State New
Headers show
Series [committed] d: Update comment for TypeInfoVisitor::layout_base | expand

Commit Message

Iain Buclaw Aug. 29, 2021, 4:34 p.m. UTC
Hi,

This patch updates the comment for TypeInfoVisitor::layout_base to
reflect a recent change that made the emission of a __monitor optional.

Bootstrapped and regression tested on x86_64-linux-gnu/-m32/-mx32,
committed to mainline.

Regards,
Iain

---
gcc/d/ChangeLog:

	* typeinfo.cc (class TypeInfoVisitor::layout_base): Update comment.
---
 gcc/d/typeinfo.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/d/typeinfo.cc b/gcc/d/typeinfo.cc
index 04e228abf7c..fd8c746a307 100644
--- a/gcc/d/typeinfo.cc
+++ b/gcc/d/typeinfo.cc
@@ -411,8 +411,7 @@  class TypeInfoVisitor : public Visitor
     this->layout_field (value);
   }
 
-
-  /* Write out the __vptr and __monitor fields of class CD.  */
+  /* Write out the __vptr and optionally __monitor fields of class CD.  */
 
   void layout_base (ClassDeclaration *cd)
   {