mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed issue with nested valueless lambdas
This commit is contained in:
parent
eaeb5ab6f8
commit
a3211809c6
2 changed files with 10 additions and 0 deletions
|
@ -5293,6 +5293,10 @@ BfIRType BfModule::GetIRLoweredType(BfTypeCode loweredTypeCode, BfTypeCode lower
|
|||
|
||||
BfMethodRefType* BfModule::CreateMethodRefType(BfMethodInstance* methodInstance, bool mustAlreadyExist)
|
||||
{
|
||||
// Make sure we don't have a partially-formed local method or lambda coming in, because those may be replaced
|
||||
// after the capture phase
|
||||
BF_ASSERT(!methodInstance->mDisallowCalling);
|
||||
|
||||
auto methodRefType = new BfMethodRefType();
|
||||
methodRefType->mContext = mContext;
|
||||
//methodRefType->mCaptureType = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue