comparison ir/irtypeclass.cpp @ 1231:212ec2d9d176

Fixed some minitest regressions.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Thu, 16 Apr 2009 19:21:30 +0200
parents e67c85d6e680
children 465a77c904d4
comparison
equal deleted inserted replaced
1230:e67c85d6e680 1231:212ec2d9d176
210 ArrayIter<Dsymbol> it(*vtbl_array); 210 ArrayIter<Dsymbol> it(*vtbl_array);
211 it.index = 1; 211 it.index = 1;
212 212
213 for (; !it.done(); it.next()) 213 for (; !it.done(); it.next())
214 { 214 {
215 FuncDeclaration* fd = it.get()->isFuncDeclaration(); 215 Dsymbol* dsym = it.get();
216 if (dsym == NULL)
217 {
218 // FIXME
219 // why is this null?
220 // happens for mini/s.d
221 types.push_back(getVoidPtrType());
222 continue;
223 }
224
225 FuncDeclaration* fd = dsym->isFuncDeclaration();
216 assert(fd && "invalid vtbl entry"); 226 assert(fd && "invalid vtbl entry");
217 227
218 IF_LOG Logger::println("Adding type of %s", fd->toPrettyChars()); 228 IF_LOG Logger::println("Adding type of %s", fd->toPrettyChars());
219 229
220 types.push_back(DtoType(fd->type->pointerTo())); 230 types.push_back(DtoType(fd->type->pointerTo()));