[macruby-changes] [1013] MacRuby/branches/experimental/roxor.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 20 00:23:29 PDT 2009
Revision: 1013
http://trac.macosforge.org/projects/ruby/changeset/1013
Author: lsansonetti at apple.com
Date: 2009-03-20 00:23:20 -0700 (Fri, 20 Mar 2009)
Log Message:
-----------
the return value of an ensure clause should never be returned (as ruby 1.9)
Modified Paths:
--------------
MacRuby/branches/experimental/roxor.cpp
Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp 2009-03-20 07:07:50 UTC (rev 1012)
+++ MacRuby/branches/experimental/roxor.cpp 2009-03-20 07:23:20 UTC (rev 1013)
@@ -3644,11 +3644,13 @@
Function *f = bb->getParent();
BasicBlock *ensure_bb = BasicBlock::Create("ensure", f);
- compile_node(node->nd_head);
+ Value *val = compile_node(node->nd_head);
BranchInst::Create(ensure_bb, bb);
bb = ensure_bb;
- return compile_node(node->nd_ensr);
+ compile_node(node->nd_ensr);
+
+ return val;
}
break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090320/bbf5c616/attachment.html>
More information about the macruby-changes
mailing list