fix building of ldc1

This commit is contained in:
Eldar Insafutdinov
2010-11-05 22:40:36 +00:00
parent 14c6dfb895
commit 410cb0dc4e

View File

@@ -513,6 +513,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
gIR->dtors.push_back(fdecl);
}
}
#if DMDV2
// shared static ctor
else if (fdecl->isSharedStaticCtorDeclaration()) {
if (mustDefineSymbol(fdecl)) {
@@ -525,7 +526,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
gIR->sharedDtors.push_back(fdecl);
}
}
#endif
// we never reference parameters of function prototypes
std::string str;
if (!declareOnly)