mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-04 22:13:14 +01:00
[svn r208] const init interface vtbls to nonzero values only for nonabstract classes
This commit is contained in:
@@ -498,7 +498,7 @@ void DtoConstInitClass(ClassDeclaration* cd)
|
||||
IrInterface* iri = *i;
|
||||
iri->infoTy = infoTy;
|
||||
|
||||
if (cd->isAbstract())
|
||||
if (cd->isAbstract() || cd->isInterfaceDeclaration())
|
||||
{
|
||||
fieldinits.push_back(llvm::Constant::getNullValue(structtype->getElementType(iri->index)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user