Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
67:f918f3e2e99e | 68:c4b3f5d2cd9b |
---|---|
787 } | 787 } |
788 for (std::set<VarDeclaration*>::iterator i=llvmNestedVars.begin(); i!=llvmNestedVars.end(); ++i) { | 788 for (std::set<VarDeclaration*>::iterator i=llvmNestedVars.begin(); i!=llvmNestedVars.end(); ++i) { |
789 VarDeclaration* vd = *i; | 789 VarDeclaration* vd = *i; |
790 if (vd->isParameter()) { | 790 if (vd->isParameter()) { |
791 gIR->ir->CreateStore(vd->llvmValue, LLVM_DtoGEPi(llvmNested, 0, vd->llvmNestedIndex, "tmp")); | 791 gIR->ir->CreateStore(vd->llvmValue, LLVM_DtoGEPi(llvmNested, 0, vd->llvmNestedIndex, "tmp")); |
792 vd->llvmValue = llvmNested; | |
792 } | 793 } |
793 } | 794 } |
794 } | 795 } |
795 | 796 |
796 // copy _argptr to a memory location | 797 // copy _argptr to a memory location |