mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Rebuild correct type with CE FastFinish
This commit is contained in:
parent
2f98e7f579
commit
9988dec99d
1 changed files with 7 additions and 2 deletions
|
@ -7806,10 +7806,15 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
|||
SpecialCheck:
|
||||
if (*fastFinishPtr)
|
||||
{
|
||||
BfTypeInstance* rebuildType = NULL;
|
||||
if ((mCurModule != NULL) && (mCurModule->mCurTypeInstance != NULL))
|
||||
rebuildType = mCurModule->mCurTypeInstance;
|
||||
if ((mCurEmitContext != NULL) && (mCurEmitContext->mType != NULL))
|
||||
rebuildType = mCurEmitContext->mType->ToTypeInstance();
|
||||
if (rebuildType != NULL)
|
||||
{
|
||||
mCurModule->mCurTypeInstance->mRebuildFlags = (BfTypeRebuildFlags)(mCurModule->mCurTypeInstance->mRebuildFlags | BfTypeRebuildFlag_ConstEvalCancelled);
|
||||
mCurModule->DeferRebuildType(mCurModule->mCurTypeInstance);
|
||||
rebuildType->mRebuildFlags = (BfTypeRebuildFlags)(rebuildType->mRebuildFlags | BfTypeRebuildFlag_ConstEvalCancelled);
|
||||
mCurModule->DeferRebuildType(rebuildType);
|
||||
}
|
||||
if (*cancelingPtr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue