mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Removed erroneous assertion in DoImplicitArgCapture
This commit is contained in:
parent
e2337e7ac1
commit
6c2d03c898
3 changed files with 17 additions and 4 deletions
|
@ -11480,8 +11480,7 @@ BfTypedValue BfExprEvaluator::DoImplicitArgCapture(BfAstNode* refNode, BfMethodI
|
|||
lookupVal = mModule->LoadValue(lookupVal);
|
||||
return lookupVal;
|
||||
}
|
||||
}
|
||||
BF_ASSERT(methodRefTarget.IsAddr());
|
||||
}
|
||||
if (paramType->IsComposite())
|
||||
return BfTypedValue(mModule->mBfIRBuilder->CreateInBoundsGEP(methodRefTarget.mValue, 0, dataIdx), paramType, true);
|
||||
return BfTypedValue(mModule->ExtractValue(methodRefTarget, dataIdx), paramType);
|
||||
|
|
|
@ -2627,9 +2627,11 @@ void BfIRBuilder::CreateTypeDeclaration(BfType* type, bool forceDbgDefine)
|
|||
BfMethodInstance* methodInstance = methodRefType->mMethodRef;
|
||||
|
||||
String name = "_BF_MethodRef_";
|
||||
name += BfTypeUtils::HashEncode64(methodInstance->mIdHash).c_str();
|
||||
|
||||
if (wantDIData)
|
||||
if (methodInstance != NULL)
|
||||
name += BfTypeUtils::HashEncode64(methodInstance->mIdHash).c_str();
|
||||
|
||||
if ((wantDIData) && (methodInstance != NULL))
|
||||
{
|
||||
auto typeDeclaration = methodInstance->GetOwner()->mTypeDef->mTypeDeclaration;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue