mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
[svn r178] Fixed codegen values for function arguments, the old approach was completely broken, amazing it even worked...
This commit is contained in:
@@ -787,8 +787,6 @@ void FuncDeclaration::semantic3(Scope *sc)
|
||||
parameters->push(v);
|
||||
localsymtab->insert(v);
|
||||
v->parent = this;
|
||||
// for llvm d
|
||||
arg->vardecl = v;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5057,7 +5057,6 @@ Argument::Argument(unsigned storageClass, Type *type, Identifier *ident, Express
|
||||
this->ident = ident;
|
||||
this->storageClass = storageClass;
|
||||
this->defaultArg = defaultArg;
|
||||
this->vardecl = 0;
|
||||
}
|
||||
|
||||
Argument *Argument::syntaxCopy()
|
||||
|
||||
@@ -674,9 +674,6 @@ struct Argument : Object
|
||||
static void argsToDecoBuffer(OutBuffer *buf, Arguments *arguments);
|
||||
static size_t dim(Arguments *arguments);
|
||||
static Argument *getNth(Arguments *arguments, size_t nth, size_t *pn = NULL);
|
||||
|
||||
// backend
|
||||
VarDeclaration* vardecl;
|
||||
};
|
||||
|
||||
extern int PTRSIZE;
|
||||
|
||||
Reference in New Issue
Block a user