This commit is contained in:
Tomas Lindquist Olsen
2009-04-25 18:27:11 +02:00
6 changed files with 13 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ LLConstant * IrStruct::getVtblInit()
FuncDeclaration* fd = dsym->isFuncDeclaration();
assert(fd && "vtbl entry not a function");
if ((cd->isAbstract() || fd->isAbstract()) && !fd->fbody)
if (fd->isAbstract() && !fd->fbody)
{
c = getNullValue(DtoType(fd->type->pointerTo()));
}
@@ -332,7 +332,7 @@ llvm::GlobalVariable * IrStruct::getInterfaceVtbl(BaseClass * b, bool new_instan
FuncDeclaration* fd = dsym->isFuncDeclaration();
assert(fd && "vtbl entry not a function");
assert(!((fd->isAbstract() || cd->isAbstract()) && !fd->fbody) &&
assert((!fd->isAbstract() || fd->fbody) &&
"null symbol in interface implementation vtable");
fd->codegen(Type::sir);