mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 16:11:08 +03:00
Add support for LLVM 12
This commit is contained in:
parent
8d71c8624a
commit
d8bc064cfb
21 changed files with 3493 additions and 60 deletions
|
@ -1163,7 +1163,9 @@ LLConstant *DtoConstExpInit(const Loc &loc, Type *targetType, Expression *exp) {
|
|||
assert(tv->basetype->ty == Tsarray);
|
||||
dinteger_t elemCount =
|
||||
static_cast<TypeSArray *>(tv->basetype)->dim->toInteger();
|
||||
#if LDC_LLVM_VER >= 1100
|
||||
#if LDC_LLVM_VER >= 1200
|
||||
const auto elementCount = llvm::ElementCount::getFixed(elemCount);
|
||||
#elif LDC_LLVM_VER >= 1100
|
||||
const auto elementCount = llvm::ElementCount(elemCount, false);
|
||||
#else
|
||||
const auto elementCount = elemCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue