mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 23:33:13 +01:00
- Fixed x86-32 C ABI for complex number return values.
- Removed unused code from the ABI class.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user