Mercurial > projects > ldc
changeset 498:a3d6c9eedcb6
Get rid of 'static function cannot access nested' error. It is caught again later.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 12 Aug 2008 19:48:42 +0200 |
parents | 70faa6af1357 |
children | 9aac7cff8342 |
files | gen/llvmhelpers.cpp gen/toobj.cpp |
diffstat | 2 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Tue Aug 12 18:33:34 2008 +0200 +++ b/gen/llvmhelpers.cpp Tue Aug 12 19:48:42 2008 +0200 @@ -406,11 +406,6 @@ } else { - if (irfunc->decl->isStatic()) - { - irfunc->decl->error("is static and cannot access nested %s %s", sym->kind(), sym->toChars()); - fatal(); - } return getNullPtr(getVoidPtrType()); } }
--- a/gen/toobj.cpp Tue Aug 12 18:33:34 2008 +0200 +++ b/gen/toobj.cpp Tue Aug 12 19:48:42 2008 +0200 @@ -64,7 +64,7 @@ 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();