[svn r88] fixed global given initializers when they don't deserve

This commit is contained in:
Tomas Lindquist Olsen
2007-11-02 02:27:41 +01:00
parent 6cdf99f01e
commit 3e3579da22

View File

@@ -598,7 +598,7 @@ void VarDeclaration::toObjFile()
llvmValue = gvar;
// if extern don't emit initializer
if (!(storage_class & STCextern))
if (!(storage_class & STCextern) && getModule() == gIR->dmodule)
{
_init = DtoConstInitializer(t, init);