Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 503:7148a3f2b44b
merge
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 13 Aug 2008 15:43:34 +0200 |
parents | 837af2a63564 a3d6c9eedcb6 |
children | 841589c97f20 |
comparison
equal
deleted
inserted
replaced
502:837af2a63564 | 503:7148a3f2b44b |
---|---|
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 /****************************************************************************************/ |