comparison gen/structs.cpp @ 840:a125ada7fd95

more moreatatime fixes
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 09 Dec 2008 18:45:25 +0100
parents 6c2ff06c4201
children af7a6faf9406
comparison
equal deleted inserted replaced
839:162a0502a6b9 840:a125ada7fd95
301 LLValue* DtoIndexStruct(LLValue* src, StructDeclaration* sd, VarDeclaration* vd) 301 LLValue* DtoIndexStruct(LLValue* src, StructDeclaration* sd, VarDeclaration* vd)
302 { 302 {
303 Logger::println("indexing struct field %s:", vd->toPrettyChars()); 303 Logger::println("indexing struct field %s:", vd->toPrettyChars());
304 LOG_SCOPE; 304 LOG_SCOPE;
305 305
306 DtoResolveStruct(sd);
307
306 // vd must be a field 308 // vd must be a field
307 IrField* field = vd->ir.irField; 309 IrField* field = vd->ir.irField;
308 assert(field); 310 assert(field);
309 311
310 // get the start pointer 312 // get the start pointer