comparison gen/tollvm.cpp @ 142:a123dca8349b trunk

[svn r146] fixed some potential problems with mismatch in order of interfaces in class data layout
author lindquist
date Wed, 23 Jan 2008 15:48:19 +0100
parents 8f43f5c43c95
children a27941d00351
comparison
equal deleted inserted replaced
141:8f43f5c43c95 142:a123dca8349b
730 v = DtoLoad(v); 730 v = DtoLoad(v);
731 } 731 }
732 else if (ClassDeclaration* cd = fd->toParent2()->isClassDeclaration()) 732 else if (ClassDeclaration* cd = fd->toParent2()->isClassDeclaration())
733 { 733 {
734 size_t idx = 2; 734 size_t idx = 2;
735 idx += cd->irStruct->interfaces.size(); 735 //idx += cd->irStruct->interfaceVec.size();
736 v = DtoGEPi(v,0,idx,"tmp"); 736 v = DtoGEPi(v,0,idx,"tmp");
737 v = DtoLoad(v); 737 v = DtoLoad(v);
738 } 738 }
739 else 739 else
740 { 740 {