Fixed undefined references to methods without body.

This commit is contained in:
Alexey Prokhin
2010-11-02 20:10:52 +03:00
parent 376c155429
commit fd73072371
2 changed files with 2 additions and 11 deletions

View File

@@ -159,7 +159,7 @@ LLConstant * IrStruct::getVtblInit()
FuncDeclaration* fd = dsym->isFuncDeclaration();
assert(fd && "vtbl entry not a function");
if (fd->isAbstract() && !fd->fbody)
if (cd->isAbstract() || (fd->isAbstract() && !fd->fbody))
{
c = getNullValue(DtoType(fd->type->pointerTo()));
}