[macruby-changes] [2032] MacRuby/branches/experimental/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 16 20:45:43 PDT 2009
Revision: 2032
http://trac.macosforge.org/projects/ruby/changeset/2032
Author: lsansonetti at apple.com
Date: 2009-07-16 20:45:42 -0700 (Thu, 16 Jul 2009)
Log Message:
-----------
sret attribute should be applied to the 1st parameter, not return value
Modified Paths:
--------------
MacRuby/branches/experimental/compiler.cpp
Modified: MacRuby/branches/experimental/compiler.cpp
===================================================================
--- MacRuby/branches/experimental/compiler.cpp 2009-07-17 03:39:38 UTC (rev 2031)
+++ MacRuby/branches/experimental/compiler.cpp 2009-07-17 03:45:42 UTC (rev 2032)
@@ -5933,7 +5933,7 @@
// Compile retval.
Value *retval;
if (sret != NULL) {
- imp_call->addAttribute(0, Attribute::StructRet);
+ imp_call->addAttribute(1, Attribute::StructRet);
retval = new LoadInst(sret, "", bb);
}
else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090716/f79c94c0/attachment.html>
More information about the macruby-changes
mailing list