Mercurial > projects > ldc
changeset 1163:ea52660f828b
Emit function bodies before generating the module info to make sure static
ctors are collected correctly. Fixes run/constructor_03.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 28 Mar 2009 20:45:33 +0100 |
parents | 0424e7dfadb1 |
children | 166042b48c28 |
files | gen/toobj.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/toobj.cpp Sat Mar 28 20:25:59 2009 +0100 +++ b/gen/toobj.cpp Sat Mar 28 20:45:33 2009 +0100 @@ -144,12 +144,12 @@ dsym->codegen(sir); } + // emit function bodies + sir->emitFunctionBodies(); + // generate ModuleInfo genmoduleinfo(); - // emit function bodies - sir->emitFunctionBodies(); - // emit usedArray if (!ir.usedArray.empty()) {