Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/ir/irtypeclass.cpp Thu Apr 16 13:18:56 2009 +0200 +++ b/ir/irtypeclass.cpp Thu Apr 16 19:21:30 2009 +0200 @@ -212,7 +212,17 @@ for (; !it.done(); it.next()) { - FuncDeclaration* fd = it.get()->isFuncDeclaration(); + Dsymbol* dsym = it.get(); + if (dsym == NULL) + { + // FIXME + // why is this null? + // happens for mini/s.d + types.push_back(getVoidPtrType()); + continue; + } + + FuncDeclaration* fd = dsym->isFuncDeclaration(); assert(fd && "invalid vtbl entry"); IF_LOG Logger::println("Adding type of %s", fd->toPrettyChars());