1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Delegate thunk return fix

This commit is contained in:
Brian Fiete 2025-03-21 07:08:18 -04:00
parent bc9ad74a46
commit 494f984ba5

View file

@ -7389,6 +7389,9 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
mModule->mCurMethodState->mMayNeedThisAccessCheck = true;
}
if (isDelegateThunk)
return BfTypedValue(callInst, methodInstance->mReturnType);
BfTypedValue result;
if (sret != NULL)
result = *sret;