mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +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,8 +5312,13 @@ void BfCompiler::PopulateReified()
|
||||||
|
|
||||||
BfLogSysM("PopulateReified iteration start\n");
|
BfLogSysM("PopulateReified iteration start\n");
|
||||||
|
|
||||||
int typeCount = 0;
|
Array<BfType*> typeList;
|
||||||
|
typeList.Reserve(context->mResolvedTypes.mCount);
|
||||||
for (auto type : context->mResolvedTypes)
|
for (auto type : context->mResolvedTypes)
|
||||||
|
typeList.Add(type);
|
||||||
|
|
||||||
|
int typeCount = 0;
|
||||||
|
for (auto type : typeList)
|
||||||
{
|
{
|
||||||
auto module = type->GetModule();
|
auto module = type->GetModule();
|
||||||
typeCount++;
|
typeCount++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue