mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
Emit array literals as unnamed_addr.
There is really no reason not to.
This commit is contained in:
@@ -473,6 +473,7 @@ void initializeArrayLiteral(IRState* p, ArrayLiteralExp* ale, LLValue* dstMem)
|
||||
constarr,
|
||||
".arrayliteral"
|
||||
);
|
||||
gvar->setUnnamedAddr(true);
|
||||
DtoMemCpy(dstMem, gvar, DtoConstSize_t(getTypePaddedSize(constarr->getType())));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user