Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
497:70faa6af1357 | 498:a3d6c9eedcb6 |
---|---|
404 LLValue* val = DtoLoad(irfunc->thisArg); | 404 LLValue* val = DtoLoad(irfunc->thisArg); |
405 return DtoLoad(DtoGEPi(val, 0,2+cd->vthis->ir.irField->index, ".vthis")); | 405 return DtoLoad(DtoGEPi(val, 0,2+cd->vthis->ir.irField->index, ".vthis")); |
406 } | 406 } |
407 else | 407 else |
408 { | 408 { |
409 if (irfunc->decl->isStatic()) | |
410 { | |
411 irfunc->decl->error("is static and cannot access nested %s %s", sym->kind(), sym->toChars()); | |
412 fatal(); | |
413 } | |
414 return getNullPtr(getVoidPtrType()); | 409 return getNullPtr(getVoidPtrType()); |
415 } | 410 } |
416 } | 411 } |
417 | 412 |
418 /****************************************************************************************/ | 413 /****************************************************************************************/ |