mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
PopulateReified mutate-while-iterating fix
This commit is contained in:
parent
77ec0563b2
commit
57609543a3
1 changed files with 7 additions and 2 deletions
|
@ -5312,9 +5312,14 @@ void BfCompiler::PopulateReified()
|
|||
|
||||
BfLogSysM("PopulateReified iteration start\n");
|
||||
|
||||
int typeCount = 0;
|
||||
Array<BfType*> typeList;
|
||||
typeList.Reserve(context->mResolvedTypes.mCount);
|
||||
for (auto type : context->mResolvedTypes)
|
||||
{
|
||||
typeList.Add(type);
|
||||
|
||||
int typeCount = 0;
|
||||
for (auto type : typeList)
|
||||
{
|
||||
auto module = type->GetModule();
|
||||
typeCount++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue