mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed a crash on failed delegate bind
This commit is contained in:
parent
0113ce7115
commit
66216ce5d9
1 changed files with 2 additions and 2 deletions
|
@ -10415,13 +10415,13 @@ BfLambdaInstance* BfExprEvaluator::GetLambdaInstance(BfLambdaBindExpression* lam
|
|||
}
|
||||
|
||||
SizedArray<BfIRType, 3> newTypes;
|
||||
if (invokeMethodInstance->HasStructRet())
|
||||
if ((invokeMethodInstance != NULL) && (invokeMethodInstance->HasStructRet()))
|
||||
newTypes.push_back(origParamTypes[0]);
|
||||
if (!methodDef->mIsStatic)
|
||||
newTypes.push_back(mModule->mBfIRBuilder->MapType(useTypeInstance));
|
||||
|
||||
int paramStartIdx = 0;
|
||||
if (invokeMethodInstance->HasStructRet())
|
||||
if ((invokeMethodInstance != NULL) && (invokeMethodInstance->HasStructRet()))
|
||||
paramStartIdx++;
|
||||
if (!methodDef->mIsStatic)
|
||||
paramStartIdx++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue