diff gen/functions.cpp @ 127:facc562f5674 trunk

[svn r131] Fixed #11 All associative array properties now work as they should. Fixed problems with some cases of array.length and array.ptr. Fixed some problems with array properties. Fixed 'in' contracts.
author lindquist
date Fri, 30 Nov 2007 12:56:52 +0100
parents 7f9a0a58394b
children 8096ba7082db
line wrap: on
line diff
--- a/gen/functions.cpp	Wed Nov 28 05:04:38 2007 +0100
+++ b/gen/functions.cpp	Fri Nov 30 12:56:52 2007 +0100
@@ -256,6 +256,8 @@
 
     if (fdecl->llvmRunTimeHack) {
         gIR->declareList.push_back(fdecl);
+        TypeFunction* tf = (TypeFunction*)fdecl->type;
+        tf->llvmRetInPtr = DtoIsPassedByRef(tf->next);
         return;
     }