[svn r146] fixed some potential problems with mismatch in order of interfaces in class data layout

This commit is contained in:
Tomas Lindquist Olsen
2008-01-23 15:48:19 +01:00
parent f9685eab09
commit be7828b589
3 changed files with 52 additions and 45 deletions

View File

@@ -732,7 +732,7 @@ static llvm::Value* get_frame_ptr_impl(FuncDeclaration* func, Dsymbol* sc, llvm:
else if (ClassDeclaration* cd = fd->toParent2()->isClassDeclaration())
{
size_t idx = 2;
idx += cd->irStruct->interfaces.size();
//idx += cd->irStruct->interfaceVec.size();
v = DtoGEPi(v,0,idx,"tmp");
v = DtoLoad(v);
}