mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-07 15:33:14 +01:00
Get rid of 'static function cannot access nested' error. It is caught again later.
This commit is contained in:
@@ -406,11 +406,6 @@ LLValue* DtoNestedContext(Loc loc, Dsymbol* sym)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (irfunc->decl->isStatic())
|
||||
{
|
||||
irfunc->decl->error("is static and cannot access nested %s %s", sym->kind(), sym->toChars());
|
||||
fatal();
|
||||
}
|
||||
return getNullPtr(getVoidPtrType());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ void Module::genobjfile(int multiobj)
|
||||
Logger::cout() << "Generating module: " << (md ? md->toChars() : toChars()) << '\n';
|
||||
LOG_SCOPE;
|
||||
|
||||
//printf("codegen: %s\n", srcfile->toChars());
|
||||
printf("codegen: %s\n", srcfile->toChars());
|
||||
|
||||
// start by deleting the old object file
|
||||
deleteObjFile();
|
||||
|
||||
Reference in New Issue
Block a user