mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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;
|
SizedArray<BfIRType, 3> newTypes;
|
||||||
if (invokeMethodInstance->HasStructRet())
|
if ((invokeMethodInstance != NULL) && (invokeMethodInstance->HasStructRet()))
|
||||||
newTypes.push_back(origParamTypes[0]);
|
newTypes.push_back(origParamTypes[0]);
|
||||||
if (!methodDef->mIsStatic)
|
if (!methodDef->mIsStatic)
|
||||||
newTypes.push_back(mModule->mBfIRBuilder->MapType(useTypeInstance));
|
newTypes.push_back(mModule->mBfIRBuilder->MapType(useTypeInstance));
|
||||||
|
|
||||||
int paramStartIdx = 0;
|
int paramStartIdx = 0;
|
||||||
if (invokeMethodInstance->HasStructRet())
|
if ((invokeMethodInstance != NULL) && (invokeMethodInstance->HasStructRet()))
|
||||||
paramStartIdx++;
|
paramStartIdx++;
|
||||||
if (!methodDef->mIsStatic)
|
if (!methodDef->mIsStatic)
|
||||||
paramStartIdx++;
|
paramStartIdx++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue