mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Merge pull request #1685 from disarray2077/patch-2
Fix crash in BfCompiler
This commit is contained in:
commit
e5b00e8f24
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