diff dmd/SwitchStatement.d @ 180:0622fff7810a

Fixed a few memory allocation related issues
author korDen
date Sun, 17 Oct 2010 23:23:28 +0400
parents e3afd1303184
children 190ba98276b3
line wrap: on
line diff
--- a/dmd/SwitchStatement.d	Sun Oct 17 20:56:07 2010 +0400
+++ b/dmd/SwitchStatement.d	Sun Oct 17 23:23:28 2010 +0400
@@ -487,7 +487,7 @@
 		block_next(blx,BCswitch,null);
 
         // Corresponding free is in block_free
-		targ_llong* pu = cast(targ_llong*) GC.malloc(targ_llong.sizeof * (numcases + 1));
+		targ_llong* pu = cast(targ_llong*) malloc(targ_llong.sizeof * (numcases + 1));
 		mystate.switchBlock.Bswitch = pu;
 		/* First pair is the number of cases, and the default block
 		 */