mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed local method errors with GetResultString
This commit is contained in:
parent
6fe6b8f2e6
commit
06fe065e2b
3 changed files with 8 additions and 1 deletions
|
@ -5283,6 +5283,11 @@ bool BfCompiler::IsAutocomplete()
|
||||||
return (mResolvePassData != NULL) && (mResolvePassData->mAutoComplete != NULL);
|
return (mResolvePassData != NULL) && (mResolvePassData->mAutoComplete != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool BfCompiler::IsDataResolvePass()
|
||||||
|
{
|
||||||
|
return (mResolvePassData != NULL) && (mResolvePassData->mResolveType == BfResolveType_GetResultString);
|
||||||
|
}
|
||||||
|
|
||||||
BfAutoComplete* BfCompiler::GetAutoComplete()
|
BfAutoComplete* BfCompiler::GetAutoComplete()
|
||||||
{
|
{
|
||||||
if (mResolvePassData != NULL)
|
if (mResolvePassData != NULL)
|
||||||
|
|
|
@ -483,6 +483,7 @@ public:
|
||||||
void ClearBuildCache();
|
void ClearBuildCache();
|
||||||
int GetDynCastVDataCount();
|
int GetDynCastVDataCount();
|
||||||
bool IsAutocomplete();
|
bool IsAutocomplete();
|
||||||
|
bool IsDataResolvePass();
|
||||||
BfAutoComplete* GetAutoComplete();
|
BfAutoComplete* GetAutoComplete();
|
||||||
bool IsHotCompile();
|
bool IsHotCompile();
|
||||||
bool IsSkippingExtraResolveChecks();
|
bool IsSkippingExtraResolveChecks();
|
||||||
|
|
|
@ -21427,7 +21427,8 @@ BfModuleMethodInstance BfModule::GetLocalMethodInstance(BfLocalMethod* localMeth
|
||||||
// Since we handle errors & warnings in the capture phase, we don't need to process any local methods for resolve-only (unless we're doing a mDbgVerifyCodeGen)
|
// Since we handle errors & warnings in the capture phase, we don't need to process any local methods for resolve-only (unless we're doing a mDbgVerifyCodeGen)
|
||||||
if ((!localMethod->mDeclOnly) && (!methodInstance->IsOrInUnspecializedVariation()) &&
|
if ((!localMethod->mDeclOnly) && (!methodInstance->IsOrInUnspecializedVariation()) &&
|
||||||
(methodDef->mMethodType != BfMethodType_Mixin) &&
|
(methodDef->mMethodType != BfMethodType_Mixin) &&
|
||||||
((!mWantsIRIgnoreWrites) || (!localMethod->mDidBodyErrorPass)))
|
((!mWantsIRIgnoreWrites) || (!localMethod->mDidBodyErrorPass)) &&
|
||||||
|
(!mCompiler->IsDataResolvePass()))
|
||||||
{
|
{
|
||||||
BP_ZONE("BfDeferredLocalMethod:create");
|
BP_ZONE("BfDeferredLocalMethod:create");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue