Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 634:0084d2c76b74

Show
Ignore:
Timestamp:
10/01/08 19:28:33 (3 months ago)
Author:
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
branch:
default
Message:

Fixed problem with taking the delegate of a nested function of the current function.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gen/toir.cpp

    r629 r634  
    18641864    LLValue* uval; 
    18651865    if (DFuncValue* f = u->isFunc()) { 
    1866         assert(f->func);         
    1867         LLValue* contextptr; 
    1868         if (p->func()->decl == f->func) 
    1869             contextptr = p->func()->thisArg; 
    1870         else 
    1871             contextptr = DtoNestedContext(loc, f->func); 
     1866        assert(f->func); 
     1867        LLValue* contextptr = DtoNestedContext(loc, f->func); 
    18721868        uval = DtoBitCast(contextptr, getVoidPtrType()); 
    18731869    } 
Copyright © 2008, LDC Development Team.