1
0
Fork 0
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:
Brian Fiete 2020-06-17 05:12:33 -07:00
parent e1559b5686
commit 308605a7dd
2 changed files with 5 additions and 2 deletions

View file

@ -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");
} }

View file

@ -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++;
} }