mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Type deletion protection in mPopulateTypeWorkList
This commit is contained in:
parent
667642ca52
commit
c73cf12f5e
2 changed files with 4 additions and 4 deletions
|
@ -9927,9 +9927,8 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetCollapseRegions(BfCompiler* bfCo
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int dollarPos = (int)emitParser->mFileName.LastIndexOf('$');
|
int dollarPos = (int)emitParser->mFileName.LastIndexOf('$');
|
||||||
if (dollarPos == -1)
|
if (dollarPos != -1)
|
||||||
return -1;
|
outString += emitParser->mFileName.Substring(dollarPos + 1);
|
||||||
outString += emitParser->mFileName.Substring(dollarPos + 1);
|
|
||||||
}
|
}
|
||||||
outString += "\n";
|
outString += "\n";
|
||||||
}
|
}
|
||||||
|
|
|
@ -464,7 +464,8 @@ bool BfContext::ProcessWorkList(bool onlyReifiedTypes, bool onlyReifiedMethods)
|
||||||
else
|
else
|
||||||
useModule = mUnreifiedModule;
|
useModule = mUnreifiedModule;
|
||||||
}
|
}
|
||||||
useModule->PopulateType(type, BfPopulateType_Full);
|
if (!type->IsDeleting())
|
||||||
|
useModule->PopulateType(type, BfPopulateType_Full);
|
||||||
mCompiler->mStats.mQueuedTypesProcessed++;
|
mCompiler->mStats.mQueuedTypesProcessed++;
|
||||||
mCompiler->UpdateCompletion();
|
mCompiler->UpdateCompletion();
|
||||||
didWork = true;
|
didWork = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue