[macruby-changes] [3616] MacRuby/branches/icu/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 25 00:15:18 PST 2010


Revision: 3616
          http://trac.macosforge.org/projects/ruby/changeset/3616
Author:   lsansonetti at apple.com
Date:     2010-02-25 00:15:14 -0800 (Thu, 25 Feb 2010)
Log Message:
-----------
fixed compilation of NODE_ALIAS (it was working before by pure luck)

Modified Paths:
--------------
    MacRuby/branches/icu/compiler.cpp

Modified: MacRuby/branches/icu/compiler.cpp
===================================================================
--- MacRuby/branches/icu/compiler.cpp	2010-02-25 01:39:54 UTC (rev 3615)
+++ MacRuby/branches/icu/compiler.cpp	2010-02-25 08:15:14 UTC (rev 3616)
@@ -4673,11 +4673,18 @@
 				NULL));
 		}
 
+		assert(nd_type(node->u1.node) == NODE_LIT);
+		assert(nd_type(node->u2.node) == NODE_LIT);
+		assert(TYPE(node->u1.node->nd_lit) == T_SYMBOL);
+		assert(TYPE(node->u2.node->nd_lit) == T_SYMBOL);
+
+		ID from = SYM2ID(node->u1.node->nd_lit);
+		ID to = SYM2ID(node->u2.node->nd_lit);
+
 		std::vector<Value *> params;
-
 		params.push_back(compile_current_class());
-		params.push_back(compile_id(node->u1.node->u1.node->u2.id));
-		params.push_back(compile_id(node->u2.node->u1.node->u2.id));
+		params.push_back(compile_id(from));
+		params.push_back(compile_id(to));
 		params.push_back(ConstantInt::get(Int8Ty,
 			    dynamic_class ? 1 : 0));
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100225/28a44b4e/attachment.html>


More information about the macruby-changes mailing list