[macruby-changes] [2751] MacRuby/trunk/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 7 16:49:56 PDT 2009


Revision: 2751
          http://trac.macosforge.org/projects/ruby/changeset/2751
Author:   lsansonetti at apple.com
Date:     2009-10-07 16:49:53 -0700 (Wed, 07 Oct 2009)
Log Message:
-----------
save/restore rescue_invoke_bb during objc stub compilation

Modified Paths:
--------------
    MacRuby/trunk/compiler.cpp

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2009-10-07 20:50:20 UTC (rev 2750)
+++ MacRuby/trunk/compiler.cpp	2009-10-07 23:49:53 UTC (rev 2751)
@@ -6762,6 +6762,7 @@
     bb = BasicBlock::Create(context, "EntryBlock", f);
 #if !__LP64__
     // Prepare exception handler (see below).
+    BasicBlock *old_rescue_invoke_bb = rescue_invoke_bb;
     rescue_invoke_bb = BasicBlock::Create(context, "rescue", f);
 #endif
 
@@ -6843,6 +6844,8 @@
 
     compile_landing_pad_footer();
     new UnreachableInst(context, bb);
+
+    rescue_invoke_bb = old_rescue_invoke_bb;
 #endif
 
     return f;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091007/81ade7bd/attachment.html>


More information about the macruby-changes mailing list