mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fix crash in BfCompiler
This commit is contained in:
parent
aaa08e9a4e
commit
528d5ffb78
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
@ -10964,4 +10969,4 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetEmitLocation(BfCompiler* bfCompi
|
|||
BF_EXPORT bool BF_CALLTYPE BfCompiler_WriteEmitData(BfCompiler* bfCompiler, char* filePath, BfProject* project)
|
||||
{
|
||||
return bfCompiler->WriteEmitData(filePath, project);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue