Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 370:051ab876fe11 trunk
[svn r391] Fix classes nested inside functions for real.
author | ChristianK |
---|---|
date | Tue, 15 Jul 2008 10:23:50 +0200 |
parents | bfb9d28f045a |
children | 83ade4f4025a |
comparison
equal
deleted
inserted
replaced
369:7d91d82000ae | 370:051ab876fe11 |
---|---|
380 v = DtoGEPi(v, 0,0, "tmp"); | 380 v = DtoGEPi(v, 0,0, "tmp"); |
381 v = DtoLoad(v); | 381 v = DtoLoad(v); |
382 } | 382 } |
383 else if (ClassDeclaration* cd = fd->toParent2()->isClassDeclaration()) | 383 else if (ClassDeclaration* cd = fd->toParent2()->isClassDeclaration()) |
384 { | 384 { |
385 v = DtoGEPi(v,0,2,"tmp"); | 385 v = DtoGEPi(v,0,2+cd->vthis->ir.irField->index,"tmp"); |
386 v = DtoLoad(v); | 386 v = DtoLoad(v); |
387 } | 387 } |
388 else | 388 else |
389 { | 389 { |
390 assert(0); | 390 assert(0); |