mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Raise min LLVM version to 3.9 (#2872)
This commit is contained in:
parent
18bbaa1895
commit
5c24f60cf9
77 changed files with 83 additions and 4146 deletions
|
@ -620,11 +620,7 @@ 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