Mercurial > projects > ldc
diff ir/irtypestruct.h @ 1270:dd135ff697fa
Fixed class default initializers and type generation. Bug #260 is fixed.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Mon, 27 Apr 2009 03:40:40 +0200 |
parents | ec1d9dc1d32a |
children |
line wrap: on
line diff
--- a/ir/irtypestruct.h Mon Apr 27 01:43:29 2009 +0200 +++ b/ir/irtypestruct.h Mon Apr 27 03:40:40 2009 +0200 @@ -33,6 +33,11 @@ /// AggregateDeclaration this type represents. AggregateDeclaration* aggr; + /// Sorted list of all default fields. + /// A default field is a field that contributes to the default initializer + /// and the default type, and thus it has it's own unique GEP index into + /// the aggregate. + /// For classes, field of any super classes are not included. std::vector<VarDeclaration*> default_fields; };