Mercurial > projects > ldc
diff gen/todebug.cpp @ 1237:73b56541152c
Make sure aggregates are resolved before outputting their debug info.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 16 Apr 2009 21:15:42 +0200 |
parents | 79758fd2f48a |
children | 0686701178d3 |
line wrap: on
line diff
--- a/gen/todebug.cpp Thu Apr 16 21:10:51 2009 +0200 +++ b/gen/todebug.cpp Thu Apr 16 21:15:42 2009 +0200 @@ -264,6 +264,9 @@ } assert(sd); + // make sure it's resolved + sd->codegen(Type::sir); + // if we don't know the aggregate's size, we don't know enough about it // to provide debug info. probably a forward-declared struct? if (sd->sizeok == 0)