changeset 488:993b217af574

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
author Christian Kamm <kamm incasoftware de>
date Sun, 10 Aug 2008 10:50:53 +0200
parents d7b2e8777e2b
children 822774a94750
files gen/tocall.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);