Mercurial > projects > ldc
changeset 1272:dd4766851b37
Forgot the special case part in last !ThisExp change.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Mon, 27 Apr 2009 13:59:15 +0200 |
parents | 0686701178d3 |
children | 1ba61de8796b |
files | gen/toir.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/toir.cpp Mon Apr 27 13:30:48 2009 +0200 +++ b/gen/toir.cpp Mon Apr 27 13:59:15 2009 +0200 @@ -1747,8 +1747,8 @@ 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;");