mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22: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();
|
||||
|
||||
module->CleanupFileInstances();
|
||||
module->ClearConstData();
|
||||
|
||||
prevTypeInstance.Restore();
|
||||
if (module->mCurTypeInstance == NULL)
|
||||
module->ClearConstData();
|
||||
|
||||
BfLogSysM("ProcessAutocompleteTempType end\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -389,7 +389,7 @@ bool BfConstResolver::PrepareMethodArguments(BfAstNode* targetSrc, BfMethodMatch
|
|||
extendedParamIdx++;
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
llvmArgs.push_back(argValue.mValue);
|
||||
paramIdx++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue