Related: rhbz#1125588 ppc64le fix simple struct returning

Change-Id: I1e253922fdb606648eff9865f1125a24e35b0d9a
This commit is contained in:
Caolán McNamara
2014-08-22 13:52:53 +01:00
parent 9a6d1c6e16
commit ee6fcdd18b

View File

@@ -305,14 +305,18 @@ static void cpp_call(
void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
bool bOverflow = false;
bool bOverflow = false;
bool bSimpleReturn = true;
if (pReturnTypeDescr)
{
#if OSL_DEBUG_LEVEL > 2
fprintf(stderr, "return type is %d\n", pReturnTypeDescr->eTypeClass);
#endif
if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
if (ppc64::return_in_hidden_param(pReturnTypeRef))
bSimpleReturn = false;
if (bSimpleReturn)
{
pCppReturn = pUnoReturn; // direct way for simple types
#if OSL_DEBUG_LEVEL > 2