From f290ff0530722d792394fe0b8d665ed6567eb807 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Mon, 27 Apr 2009 13:59:15 +0200 Subject: [PATCH] Forgot the special case part in last !ThisExp change. --- gen/toir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index 3ee174c3..f480f81c 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -1747,8 +1747,8 @@ DValue* AssertExp::toElem(IRState* p) DValue* cond; Type* condty; - // special case assert(this); - if (e1->op == TOKthis) + // special case for dmd generated assert(this); when not in -release mode + if (e1->op == TOKthis && ((ThisExp*)e1)->var == NULL) { LLValue* thisarg = p->func()->thisArg; assert(thisarg && "null thisarg, but we're in assert(this) exp;");