[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:
Tomas Lindquist Olsen
2008-05-12 22:44:25 +02:00
parent ee551c95b9
commit c571bf0f70
6 changed files with 22 additions and 12 deletions

View File

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