mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed issue where constData used in resolve is cleared by autocomplete
This commit is contained in:
parent
e1559b5686
commit
308605a7dd
2 changed files with 5 additions and 2 deletions
|
@ -4219,8 +4219,11 @@ void BfCompiler::ProcessAutocompleteTempType()
|
||||||
methodInstances.Clear();
|
methodInstances.Clear();
|
||||||
|
|
||||||
module->CleanupFileInstances();
|
module->CleanupFileInstances();
|
||||||
module->ClearConstData();
|
|
||||||
|
|
||||||
|
prevTypeInstance.Restore();
|
||||||
|
if (module->mCurTypeInstance == NULL)
|
||||||
|
module->ClearConstData();
|
||||||
|
|
||||||
BfLogSysM("ProcessAutocompleteTempType end\n");
|
BfLogSysM("ProcessAutocompleteTempType end\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -389,7 +389,7 @@ bool BfConstResolver::PrepareMethodArguments(BfAstNode* targetSrc, BfMethodMatch
|
||||||
extendedParamIdx++;
|
extendedParamIdx++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
llvmArgs.push_back(argValue.mValue);
|
llvmArgs.push_back(argValue.mValue);
|
||||||
paramIdx++;
|
paramIdx++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue