- Fixed x86-32 C ABI for complex number return values.

- Removed unused code from the ABI class.
This commit is contained in:
Tomas Lindquist Olsen
2009-03-01 19:01:05 +01:00
parent 757601af09
commit 61dfb11bc5
7 changed files with 110 additions and 36 deletions

View File

@@ -527,5 +527,10 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
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);
}