comparison dmd/backend/elem.d @ 136:9d194c848e3a

fixed a few null reference bugs, thx sagitario
author Trass3r
date Mon, 13 Sep 2010 23:27:38 +0200
parents e28b18c23469
children
comparison
equal deleted inserted replaced
132:c494af1dba80 136:9d194c848e3a
10 import dmd.backend.LIST; 10 import dmd.backend.LIST;
11 import dmd.backend.Classsym; 11 import dmd.backend.Classsym;
12 import dmd.backend.TYPE; 12 import dmd.backend.TYPE;
13 import dmd.backend.Util; 13 import dmd.backend.Util;
14 import dmd.backend.Srcpos; 14 import dmd.backend.Srcpos;
15 import dmd.backend.OPER;
15 16
16 /********************************* 17 /*********************************
17 * Union of all data types. Storage allocated must be the right 18 * Union of all data types. Storage allocated must be the right
18 * size of the data on the TARGET, not the host. 19 * size of the data on the TARGET, not the host.
19 */ 20 */
90 { 91 {
91 debug { 92 debug {
92 ushort id; 93 ushort id;
93 } 94 }
94 95
95 ubyte Eoper; // operator (OPxxxx) 96 OPER Eoper; // operator (OPxxxx)
96 ubyte Ecount; // # of parents of this elem - 1, 97 ubyte Ecount; // # of parents of this elem - 1,
97 // always 0 until CSE elimination is done 98 // always 0 until CSE elimination is done
98 eve EV; // variants for each type of elem 99 eve EV; // variants for each type of elem
99 100
100 ref elem* E1() 101 ref elem* E1()
101 { 102 {