Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 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 | a34078905d01 |
children | 7148a3f2b44b |
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()); } }