1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fix crash in BfCompiler

This commit is contained in:
disarray2077 2022-08-17 14:46:24 -03:00 committed by GitHub
parent aaa08e9a4e
commit 528d5ffb78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7489,7 +7489,12 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
Array<BfTypeInstance*> typeWorkList;
Array<BfType*> typeList;
typeList.Reserve(mContext->mResolvedTypes.GetCount());
for (auto type : mContext->mResolvedTypes)
typeList.Add(type);
for (auto type : typeList)
{
auto module = type->GetModule();