1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Android armv7 lowering change

This commit is contained in:
Brian Fiete 2020-08-26 05:21:20 -07:00
parent 2038d4d683
commit 7ac879c448

View file

@ -1717,9 +1717,12 @@ bool BfTypeInstance::GetLoweredType(BfTypeUsage typeUsage, BfTypeCode* outTypeCo
} }
else else
{ {
// Always do sret on non-Windows 32-bit // We know this is correct for Linux x86 and Android armv7
if ((typeUsage == BfTypeUsage_Return_NonStatic) || (typeUsage == BfTypeUsage_Return_Static)) if (mModule->mCompiler->mOptions.mPlatformType == BfPlatformType_Linux)
return false; {
if ((typeUsage == BfTypeUsage_Return_NonStatic) || (typeUsage == BfTypeUsage_Return_Static))
return false;
}
} }
} }