1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Delegate calling convention thunk fix

This commit is contained in:
Brian Fiete 2025-03-21 08:12:33 -04:00
parent ab8fa7a91a
commit deaa1b4125

View file

@ -7157,6 +7157,9 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
expectCallingConvention = BfIRCallingConv_ThisCall;
}
if (((callFlags & BfCreateCallFlags_DelegateThunkStatic) != 0) && (expectCallingConvention == BfIRCallingConv_ThisCall))
expectCallingConvention = BfIRCallingConv_CDecl;
if ((methodInstance->mAlwaysInline) && (mModule->mCompiler->mOptions.mEmitLineInfo))
{
// Emit a NOP so we always have a "step over" point