mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-20 21:53:14 +01:00
[svn r88] fixed global given initializers when they don't deserve
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user