diff gen/toobj.c @ 68:c4b3f5d2cd9b trunk

[svn r72] Calling a nested function that is not a delegate was not working.
author lindquist
date Sun, 28 Oct 2007 03:14:29 +0100
parents f918f3e2e99e
children 2b5a2eaa88be
line wrap: on
line diff
--- a/gen/toobj.c	Sun Oct 28 02:46:06 2007 +0200
+++ b/gen/toobj.c	Sun Oct 28 03:14:29 2007 +0100
@@ -789,6 +789,7 @@
                         VarDeclaration* vd = *i;
                         if (vd->isParameter()) {
                             gIR->ir->CreateStore(vd->llvmValue, LLVM_DtoGEPi(llvmNested, 0, vd->llvmNestedIndex, "tmp"));
+                            vd->llvmValue = llvmNested;
                         }
                     }
                 }