Fixed some minitest regressions.

This commit is contained in:
Tomas Lindquist Olsen
2009-04-16 19:21:30 +02:00
parent 5db458d8da
commit 9a86f9c0b5
9 changed files with 272 additions and 53 deletions

View File

@@ -212,7 +212,17 @@ const llvm::Type* IrTypeClass::buildVtblType(Type* first, Array* vtbl_array)
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());