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:
parent
ab8fa7a91a
commit
deaa1b4125
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue