mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Workaround for VS2019 optimization bug
This commit is contained in:
parent
414a6faa56
commit
d82aab3b3f
1 changed files with 7 additions and 10 deletions
|
@ -4123,11 +4123,8 @@ void BfCompiler::ProcessAutocompleteTempType()
|
||||||
|
|
||||||
if (tempTypeDef->mTypeCode == BfTypeCode_Extension)
|
if (tempTypeDef->mTypeCode == BfTypeCode_Extension)
|
||||||
mResolvePassData->mSourceClassifier->SetElementType(tempTypeDef->mTypeDeclaration->mNameNode, actualTypeDef->mTypeCode);
|
mResolvePassData->mSourceClassifier->SetElementType(tempTypeDef->mTypeDeclaration->mNameNode, actualTypeDef->mTypeCode);
|
||||||
|
|
||||||
if (tempTypeDef->mTypeDeclaration->mAttributes != NULL)
|
if (tempTypeDef->mTypeDeclaration->mAttributes != NULL)
|
||||||
{
|
|
||||||
mResolvePassData->mSourceClassifier->VisitChild(tempTypeDef->mTypeDeclaration->mAttributes);
|
mResolvePassData->mSourceClassifier->VisitChild(tempTypeDef->mTypeDeclaration->mAttributes);
|
||||||
}
|
|
||||||
|
|
||||||
BfTypeInstance* typeInst;
|
BfTypeInstance* typeInst;
|
||||||
{
|
{
|
||||||
|
@ -8457,15 +8454,15 @@ BF_EXPORT bool BF_CALLTYPE BfCompiler_ClassifySource(BfCompiler* bfCompiler, BfP
|
||||||
|
|
||||||
bfSourceClassifier.mSkipMethodInternals = true;
|
bfSourceClassifier.mSkipMethodInternals = true;
|
||||||
bfSourceClassifier.mSkipTypeDeclarations = true;
|
bfSourceClassifier.mSkipTypeDeclarations = true;
|
||||||
if ((charData != NULL) && (doClassifyPass))
|
if (charData != NULL)
|
||||||
bfSourceClassifier.Visit(bfParser->mRootNode);
|
{
|
||||||
|
resolvePassData->mSourceClassifier = &bfSourceClassifier;
|
||||||
|
if (doClassifyPass)
|
||||||
|
bfSourceClassifier.Visit(bfParser->mRootNode);
|
||||||
|
}
|
||||||
bfSourceClassifier.mSkipTypeDeclarations = false;
|
bfSourceClassifier.mSkipTypeDeclarations = false;
|
||||||
bfSourceClassifier.mSkipMethodInternals = false;
|
bfSourceClassifier.mSkipMethodInternals = false;
|
||||||
|
|
||||||
|
|
||||||
if (charData != NULL)
|
|
||||||
resolvePassData->mSourceClassifier = &bfSourceClassifier;
|
|
||||||
|
|
||||||
bfPassInstance->mFilterErrorsTo = bfParser;
|
bfPassInstance->mFilterErrorsTo = bfParser;
|
||||||
bfPassInstance->mTrimMessagesToCursor = true;
|
bfPassInstance->mTrimMessagesToCursor = true;
|
||||||
SetAndRestoreValue<BfResolvePassData*> prevCompilerResolvePassData(bfCompiler->mResolvePassData, resolvePassData);
|
SetAndRestoreValue<BfResolvePassData*> prevCompilerResolvePassData(bfCompiler->mResolvePassData, resolvePassData);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue