mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
merge
This commit is contained in:
commit
3a2e29d434
2 changed files with 2 additions and 2 deletions
|
@ -547,7 +547,7 @@ static void init_class_vtbl_initializer(ClassDeclaration* cd)
|
|||
FuncDeclaration* fd = dsym->isFuncDeclaration();
|
||||
assert(fd);
|
||||
|
||||
if (fd->isAbstract())
|
||||
if (fd->isAbstract() || (cd->isAbstract() && !fd->fbody))
|
||||
{
|
||||
sinits[k] = getNullPtr(getVoidPtrType());
|
||||
}
|
||||
|
|
|
@ -972,7 +972,7 @@ void DtoConstInitGlobal(VarDeclaration* vd)
|
|||
// FIXME: I don't think it's thread safe ...
|
||||
|
||||
bool doLazyInit = false;
|
||||
Dsymbol* par = vd->toParent2();
|
||||
Dsymbol* par = vd->toParent();
|
||||
|
||||
if (par && par->isFuncDeclaration() && vd->init)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue