Revision
1934
Author
vincent.isambart@gmail.com
Date
2009-06-26 06:52:20 -0700 (Fri, 26 Jun 2009)

Log Message

corrected one of the tests added just before

Modified Paths

Diff

Modified: MacRuby/branches/experimental/vm.cpp (1933 => 1934)


--- MacRuby/branches/experimental/vm.cpp	2009-06-26 12:56:34 UTC (rev 1933)
+++ MacRuby/branches/experimental/vm.cpp	2009-06-26 13:52:20 UTC (rev 1934)
@@ -3004,10 +3004,6 @@
 
 	rb_vm_add_lvar_use(block_for_uses->parent_var_uses, block, VM_LVAR_USE_TYPE_BLOCK);
     }
-
-    // we should not keep references that won't be used
-    block->parent_block = NULL;
-    block->parent_var_uses = NULL;
 }
 
 static void
@@ -3079,6 +3075,11 @@
 			    }
 			}
 		    }
+
+		    // the parent pointers can't be used anymore
+		    block->parent_block = NULL;
+		    block->parent_var_uses = NULL;
+
 		    locals_to_replace = block->locals;
 		}
 		else { // VM_LVAR_USE_TYPE_BINDING