comparison dmd/UshrAssignExp.d @ 130:60bb0fe4563e

dmdfe 2.037 first main iteration
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 09 Sep 2010 22:51:44 +0100
parents fe941d774f4a
children 206db751bd4c
comparison
equal deleted inserted replaced
129:010eb8f0e18d 130:60bb0fe4563e
31 31
32 e = op_overload(sc); 32 e = op_overload(sc);
33 if (e) 33 if (e)
34 return e; 34 return e;
35 35
36 if (e1.op == TOK.TOKarraylength)
37 {
38 e = ArrayLengthExp.rewriteOpAssign(this);
39 e = e.semantic(sc);
40 return e;
41 }
42
36 e1 = e1.modifiableLvalue(sc, e1); 43 e1 = e1.modifiableLvalue(sc, e1);
37 e1.checkScalar(); 44 e1.checkScalar();
38 e1.checkNoBool(); 45 e1.checkNoBool();
39 type = e1.type; 46 type = e1.type;
40 typeCombine(sc); 47 typeCombine(sc);
54 return Id.ushrass; 61 return Id.ushrass;
55 } 62 }
56 63
57 override elem* toElem(IRState* irs) 64 override elem* toElem(IRState* irs)
58 { 65 {
59 assert(false); 66 return toElemBin(irs, OPER.OPshrass);
60 } 67 }
61 } 68 }