From 57cd1b4445d97727bd69999128b84f921112761b Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 12 Aug 2008 19:48:42 +0200 Subject: [PATCH] Get rid of 'static function cannot access nested' error. It is caught again later. --- gen/llvmhelpers.cpp | 5 ----- gen/toobj.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 4e98269d..25464324 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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()); } } diff --git a/gen/toobj.cpp b/gen/toobj.cpp index 67e42f86..f276f392 100644 --- a/gen/toobj.cpp +++ b/gen/toobj.cpp @@ -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();