mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 17:13:20 +01:00
[svn r217] Updated: the rebuild profiles.
Fixed: way to find class data fields was too strict type wise. Fixed: foreach resulting in an implicit delegate could fail.
This commit is contained in:
@@ -1246,7 +1246,10 @@ DValue* CastExp::toElem(IRState* p)
|
||||
return v;
|
||||
}
|
||||
|
||||
else if (u->isLRValue() || (u->isVar() && u->isVar()->lval))
|
||||
else if (DLRValue* lr = u->isLRValue())
|
||||
return new DLRValue(lr->getLType(), lr->getLVal(), to, v->getRVal());
|
||||
|
||||
else if (u->isVar() && u->isVar()->lval)
|
||||
return new DLRValue(e1->type, u->getLVal(), to, v->getRVal());
|
||||
|
||||
else if (gIR->topexp() && gIR->topexp()->e1 == this)
|
||||
|
||||
Reference in New Issue
Block a user