# HG changeset patch # User Christian Kamm # Date 1218653454 -7200 # Node ID 841589c97f20704c15150ae5f8179b961642ed67 # Parent 577211114d6d4a42dcd70e1c973572ad3e7ba8ad Do not assert if there's a struct-this nested context. diff -r 577211114d6d -r 841589c97f20 gen/llvmhelpers.cpp --- a/gen/llvmhelpers.cpp Wed Aug 13 17:11:03 2008 +0200 +++ b/gen/llvmhelpers.cpp Wed Aug 13 20:50:54 2008 +0200 @@ -398,8 +398,7 @@ else if (irfunc->thisArg) { ClassDeclaration* cd = irfunc->decl->isMember2()->isClassDeclaration(); - assert(cd); - if (!cd->vthis) + if (!cd || !cd->vthis) return getNullPtr(getVoidPtrType()); LLValue* val = DtoLoad(irfunc->thisArg); return DtoLoad(DtoGEPi(val, 0,2+cd->vthis->ir.irField->index, ".vthis"));