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:
Alexey Prokhin
2012-01-29 12:32:08 +04:00
parent efcbe8390a
commit 15a903580b
5 changed files with 20 additions and 18 deletions

View File

@@ -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

View File

@@ -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)
{
}

View File

@@ -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