Changeset 634:0084d2c76b74
- Timestamp:
- 10/01/08 19:28:33
(2 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
| r629 |
r634 |
|
| 1864 | 1864 | LLValue* uval; |
|---|
| 1865 | 1865 | 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); |
|---|
| 1872 | 1868 | uval = DtoBitCast(contextptr, getVoidPtrType()); |
|---|
| 1873 | 1869 | } |
|---|