Mercurial > projects > ddmd
comparison dmd/IdentityExp.d @ 73:ef02e2e203c2
Updating to dmd2.033
author | korDen |
---|---|
date | Sat, 28 Aug 2010 19:42:41 +0400 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
72:2e2a5c3f943a | 73:ef02e2e203c2 |
---|---|
8 import dmd.BinExp; | 8 import dmd.BinExp; |
9 import dmd.TOK; | 9 import dmd.TOK; |
10 import dmd.Type; | 10 import dmd.Type; |
11 import dmd.WANT; | 11 import dmd.WANT; |
12 import dmd.TY; | 12 import dmd.TY; |
13 import dmd.GlobalExpressions; | |
13 import dmd.expression.Identity; | 14 import dmd.expression.Identity; |
14 | 15 |
15 import dmd.backend.elem; | 16 import dmd.backend.elem; |
16 import dmd.backend.TYM; | 17 import dmd.backend.TYM; |
17 import dmd.backend.OPER; | 18 import dmd.backend.OPER; |
59 e = this; | 60 e = this; |
60 | 61 |
61 if ((this.e1.isConst() && this.e2.isConst()) || (this.e1.op == TOK.TOKnull && this.e2.op == TOK.TOKnull)) | 62 if ((this.e1.isConst() && this.e2.isConst()) || (this.e1.op == TOK.TOKnull && this.e2.op == TOK.TOKnull)) |
62 { | 63 { |
63 e = Identity(op, type, this.e1, this.e2); | 64 e = Identity(op, type, this.e1, this.e2); |
65 if (e is EXP_CANT_INTERPRET) | |
66 e = this; | |
64 } | 67 } |
65 | 68 |
66 return e; | 69 return e; |
67 } | 70 } |
68 | 71 |