extern(C++) interfaces

This commit is contained in:
Alexey Prokhin
2013-06-22 17:33:00 +04:00
parent 324ff01fdb
commit 90bb32d2d8
4 changed files with 72 additions and 15 deletions

View File

@@ -188,7 +188,7 @@ void IrTypeClass::addBaseClassData(
ArrayIter<BaseClass> it2(*base->vtblInterfaces);
VarDeclarationIter interfaces_idx(ClassDeclaration::classinfo->fields, 3);
Type* first = interfaces_idx->type->nextOf()->pointerTo();
Type* first = interfaces_idx->type->nextOf()->pointerTo();
// align offset
offset = (offset + Target::ptrsize - 1) & ~(Target::ptrsize - 1);