diff gen/tocall.cpp @ 1018:e8c6dbcd33d1

- Fixed x86-32 C ABI for complex number return values. - Removed unused code from the ABI class.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 01 Mar 2009 19:01:05 +0100
parents 8c73ff5f69e0
children 9167d492cbc2
line wrap: on
line diff
--- a/gen/tocall.cpp	Sun Mar 01 11:04:05 2009 +0100
+++ b/gen/tocall.cpp	Sun Mar 01 19:01:05 2009 +0100
@@ -527,5 +527,10 @@
         call.setCallingConv(callconv);
     call.setAttributes(attrlist);
 
+    // if we are returning through a pointer arg
+    // make sure we provide a lvalue back!
+    if (retinptr)
+        return new DVarValue(resulttype, retllval);
+
     return new DImValue(resulttype, retllval);
 }