Mercurial > projects > ddmd
comparison dmd/PostExp.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 | e28b18c23469 |
children | af724d3510d7 |
comparison
equal
deleted
inserted
replaced
129:010eb8f0e18d | 130:60bb0fe4563e |
---|---|
68 return (op == TOKplusplus) ? Id.postinc : Id.postdec; | 68 return (op == TOKplusplus) ? Id.postinc : Id.postdec; |
69 } | 69 } |
70 | 70 |
71 override elem* toElem(IRState* irs) | 71 override elem* toElem(IRState* irs) |
72 { | 72 { |
73 elem* e; | 73 auto e = e1.toElem(irs); |
74 elem* einc; | 74 auto einc = e2.toElem(irs); |
75 | |
76 e = e1.toElem(irs); | |
77 einc = e2.toElem(irs); | |
78 e = el_bin((op == TOKplusplus) ? OPpostinc : OPpostdec, | 75 e = el_bin((op == TOKplusplus) ? OPpostinc : OPpostdec, |
79 e.Ety,e,einc); | 76 e.Ety,e,einc); |
80 el_setLoc(e,loc); | 77 el_setLoc(e,loc); |
81 return e; | 78 return e; |
82 } | 79 } |