comparison gen/structs.cpp @ 169:2df270e1ba59 trunk

[svn r185] Fixed broken nested classes with data members, did DMD change the class layout? tango.text.Regex now compiles. Commented some of the *very* verbose logging for -vv option.
author lindquist
date Tue, 06 May 2008 03:07:21 +0200
parents 5c17f81fc1c1
children 95f07e3f8bb9
comparison
equal deleted inserted replaced
168:08cfde5f70d3 169:2df270e1ba59
120 } 120 }
121 121
122 for (unsigned i=0; i<sd->fields.dim; ++i) { 122 for (unsigned i=0; i<sd->fields.dim; ++i) {
123 VarDeclaration* vd = (VarDeclaration*)sd->fields.data[i]; 123 VarDeclaration* vd = (VarDeclaration*)sd->fields.data[i];
124 Type* vdtype = DtoDType(vd->type); 124 Type* vdtype = DtoDType(vd->type);
125 Logger::println("found %u type %s", vd->offset, vdtype->toChars()); 125 //Logger::println("found %u type %s", vd->offset, vdtype->toChars());
126 assert(gIR->irDsymbol[vd].irField->index >= 0); 126 assert(gIR->irDsymbol[vd].irField->index >= 0);
127 if (os == vd->offset && vdtype == t) { 127 if (os == vd->offset && vdtype == t) {
128 idxs.push_back(gIR->irDsymbol[vd].irField->index); 128 idxs.push_back(gIR->irDsymbol[vd].irField->index);
129 ptr = DtoGEP(ptr, idxs, "tmp"); 129 ptr = DtoGEP(ptr, idxs, "tmp");
130 if (ptr->getType() != llt) 130 if (ptr->getType() != llt)