# HG changeset patch # User Christian Kamm # Date 1218358253 -7200 # Node ID 993b217af574ba47c7575c29072b054b59464210 # Parent d7b2e8777e2bab203f4f309571cd4dfacd160caa Error if there is no this in a call requiring this. Fixes: nocompile/b/bug_type_308_G,H nocompile/bug_e2ir_814 nocompile/i/inline_18_A,B nocompile/inline_07 nocompile/static_09 diff -r d7b2e8777e2b -r 993b217af574 gen/tocall.cpp --- a/gen/tocall.cpp Sun Aug 10 10:40:26 2008 +0200 +++ b/gen/tocall.cpp Sun Aug 10 10:50:53 2008 +0200 @@ -241,9 +241,8 @@ if(thiscall || delegatecall || nestedcall) { // ... which can be a 'this' argument - if (thiscall) + if (thiscall && dfnval && dfnval->vthis) { - assert(dfnval && dfnval->vthis); LLValue* thisarg = DtoBitCast(dfnval->vthis, argiter->get()); ++argiter; args.push_back(thisarg);