Mercurial > projects > ldc
comparison dmd/func.c @ 162:1856c62af24b trunk
[svn r178] Fixed codegen values for function arguments, the old approach was completely broken, amazing it even worked...
author | lindquist |
---|---|
date | Mon, 05 May 2008 00:56:53 +0200 |
parents | 5acec6b2eef8 |
children | a58d8f4b84df |
comparison
equal
deleted
inserted
replaced
161:3a891cfcd249 | 162:1856c62af24b |
---|---|
785 error("parameter %s.%s is already defined", toChars(), v->toChars()); | 785 error("parameter %s.%s is already defined", toChars(), v->toChars()); |
786 else | 786 else |
787 parameters->push(v); | 787 parameters->push(v); |
788 localsymtab->insert(v); | 788 localsymtab->insert(v); |
789 v->parent = this; | 789 v->parent = this; |
790 // for llvm d | |
791 arg->vardecl = v; | |
792 } | 790 } |
793 } | 791 } |
794 | 792 |
795 // Declare the tuple symbols and put them in the symbol table, | 793 // Declare the tuple symbols and put them in the symbol table, |
796 // but not in parameters[]. | 794 // but not in parameters[]. |