1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Removed erroneous assertion in DoImplicitArgCapture

This commit is contained in:
Brian Fiete 2021-12-23 07:25:45 -05:00
parent e2337e7ac1
commit 6c2d03c898
3 changed files with 17 additions and 4 deletions

View file

@ -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);