mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Partial fix for #69 — LDC1 from master fails to build Tango.
Fixed regression that has been introduced in commit 9889067.
This commit is contained in:
@@ -79,9 +79,6 @@ struct IrFuncTy : IrBase
|
||||
// range of normal parameters to reverse
|
||||
bool reverseParams;
|
||||
|
||||
// arg_this is reference
|
||||
bool is_arg_this_ref;
|
||||
|
||||
IrFuncTy()
|
||||
: ret(NULL),
|
||||
args(),
|
||||
@@ -91,8 +88,7 @@ struct IrFuncTy : IrBase
|
||||
arg_arguments(NULL),
|
||||
arg_argptr(NULL),
|
||||
c_vararg(false),
|
||||
reverseParams(false),
|
||||
is_arg_this_ref(false)
|
||||
reverseParams(false)
|
||||
{}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
@@ -107,8 +103,7 @@ struct IrFuncTy : IrBase
|
||||
arg_arguments(rhs.arg_arguments),
|
||||
arg_argptr(rhs.arg_argptr),
|
||||
c_vararg(rhs.c_vararg),
|
||||
reverseParams(rhs.reverseParams),
|
||||
is_arg_this_ref(rhs.is_arg_this_ref)
|
||||
reverseParams(rhs.reverseParams)
|
||||
{}
|
||||
|
||||
IrFuncTy& operator=(const IrFuncTy& rhs)
|
||||
@@ -122,7 +117,6 @@ struct IrFuncTy : IrBase
|
||||
arg_argptr = rhs.arg_argptr;
|
||||
c_vararg = rhs.c_vararg;
|
||||
reverseParams = rhs.reverseParams;
|
||||
is_arg_this_ref = rhs.is_arg_this_ref;
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -38,7 +38,7 @@ IrLocal::IrLocal(VarDeclaration* v) : IrVar(v)
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
IrParameter::IrParameter(VarDeclaration* v) : IrLocal(v), arg(0)
|
||||
IrParameter::IrParameter(VarDeclaration* v) : IrLocal(v), arg(0), isVthis(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ struct IrParameter : IrLocal
|
||||
{
|
||||
IrParameter(VarDeclaration* v);
|
||||
IrFuncTyArg *arg;
|
||||
bool isVthis; // true, if it is the 'this' parameter
|
||||
};
|
||||
|
||||
// represents an aggregate field variable
|
||||
|
||||
Reference in New Issue
Block a user