mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20:40 +03:00
fix build against LLVM trunk svn rev 273030
This commit is contained in:
parent
235f392ec8
commit
f9995b1883
6 changed files with 28 additions and 0 deletions
|
@ -579,7 +579,11 @@ void initializeArrayLiteral(IRState *p, ArrayLiteralExp *ale, LLValue *dstMem) {
|
|||
auto gvar = new llvm::GlobalVariable(gIR->module, constarr->getType(),
|
||||
true, LLGlobalValue::InternalLinkage,
|
||||
constarr, ".arrayliteral");
|
||||
#if LDC_LLVM_VER >= 309
|
||||
gvar->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::Global);
|
||||
#else
|
||||
gvar->setUnnamedAddr(true);
|
||||
#endif
|
||||
DtoMemCpy(dstMem, gvar,
|
||||
DtoConstSize_t(getTypeAllocSize(constarr->getType())));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue