diff dmd/backend/block.d @ 5:63623152e82a

Fixed memory corruption bug which was introduced when attempting to restore GC functionality
author dkoroskin <>
date Tue, 08 Dec 2009 21:39:17 +0300
parents 10317f0c89a5
children e28b18c23469
line wrap: on
line diff
--- a/dmd/backend/block.d	Mon Oct 26 16:28:19 2009 +0300
+++ b/dmd/backend/block.d	Tue Dec 08 21:39:17 2009 +0300
@@ -150,4 +150,13 @@
 ///	BFLlooprt = 0x40,	// set if looprotate() changes it's Bnext
 ///}
 	BFLvolatile = 0x4000,	// block is volatile
+}
+
+void dump_block(block* foo)
+{
+	foreach (a, b; foo.tupleof)
+	{
+		std.stdio.writeln(foo.tupleof[a].stringof, " ", cast(char*)&foo.tupleof[a] - cast(char*)foo, " = ", foo.tupleof[a]);
+		//std.stdio.writeln("printf(\"", foo.tupleof[a].stringof, " %d = %d\\n\",(char*)(&", foo.tupleof[a].stringof, ")-(char*)foo, ", foo.tupleof[a].stringof, ");");
+	}
 }
\ No newline at end of file