mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
LDC 2 compiles again.
This commit is contained in:
parent
6619190ba5
commit
c5be82c5ae
97 changed files with 67333 additions and 56949 deletions
|
@ -111,7 +111,11 @@ LLGlobalVariable * IrStruct::getInterfaceArraySymbol()
|
|||
"don't implement any interfaces");
|
||||
|
||||
VarDeclarationIter idx(ClassDeclaration::classinfo->fields, 3);
|
||||
#if DMDV2
|
||||
const llvm::Type* InterfaceTy = DtoType(idx->type->nextOf());
|
||||
#else
|
||||
const llvm::Type* InterfaceTy = DtoType(idx->type->next);
|
||||
#endif
|
||||
|
||||
// create Interface[N]
|
||||
const llvm::ArrayType* array_type = llvm::ArrayType::get(InterfaceTy,n);
|
||||
|
@ -328,7 +332,11 @@ llvm::GlobalVariable * IrStruct::getInterfaceVtbl(BaseClass * b, bool new_instan
|
|||
|
||||
// start with the interface info
|
||||
VarDeclarationIter interfaces_idx(ClassDeclaration::classinfo->fields, 3);
|
||||
#if DMDV2
|
||||
Type* first = interfaces_idx->type->nextOf()->pointerTo();
|
||||
#else
|
||||
Type* first = interfaces_idx->type->next->pointerTo();
|
||||
#endif
|
||||
|
||||
// index into the interfaces array
|
||||
llvm::Constant* idxs[2] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue