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

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 4 13:52:50 PST 2009


Revision: 2957
          http://trac.macosforge.org/projects/ruby/changeset/2957
Author:   lsansonetti at apple.com
Date:     2009-11-04 13:52:49 -0800 (Wed, 04 Nov 2009)
Log Message:
-----------
fixed a bug in the compilation of gvar assignments where potential exceptions would not properly be intercepted

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

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2009-11-04 20:27:40 UTC (rev 2956)
+++ MacRuby/trunk/compiler.cpp	2009-11-04 21:52:49 UTC (rev 2957)
@@ -1222,8 +1222,7 @@
     params.push_back(compile_global_entry(node));
     params.push_back(val);
 
-    return CallInst::Create(gvarSetFunc, params.begin(),
-	    params.end(), "", bb);
+    return compile_protected_call(gvarSetFunc, params);
 }
 
 Value *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091104/95cb117d/attachment.html>


More information about the macruby-changes mailing list