mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 21:34:11 +02:00
Fixed mouseover for 'var' in foreach over structs
This commit is contained in:
parent
01eb80c3d4
commit
0e6ad7304e
1 changed files with 3 additions and 1 deletions
|
@ -6775,6 +6775,8 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
|
||||||
BfTypedValue varTypedVal;
|
BfTypedValue varTypedVal;
|
||||||
bool needsValCopy = true;
|
bool needsValCopy = true;
|
||||||
|
|
||||||
|
BfType* origVarType = varType;
|
||||||
|
|
||||||
// Local variable
|
// Local variable
|
||||||
{
|
{
|
||||||
if (!tupleBinds.IsEmpty())
|
if (!tupleBinds.IsEmpty())
|
||||||
|
@ -6914,7 +6916,7 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
|
||||||
innerScopeData.mIsLoop = true;
|
innerScopeData.mIsLoop = true;
|
||||||
|
|
||||||
if ((autoComplete != NULL) && (forEachStmt->mVariableTypeRef != NULL))
|
if ((autoComplete != NULL) && (forEachStmt->mVariableTypeRef != NULL))
|
||||||
autoComplete->CheckVarResolution(forEachStmt->mVariableTypeRef, varType);
|
autoComplete->CheckVarResolution(forEachStmt->mVariableTypeRef, origVarType);
|
||||||
|
|
||||||
if (isArray || isSizedArray)
|
if (isArray || isSizedArray)
|
||||||
mBfIRBuilder->CreateAlignedStore(GetConstValue(0), itr.mValue, itr.mType->mAlign);
|
mBfIRBuilder->CreateAlignedStore(GetConstValue(0), itr.mValue, itr.mType->mAlign);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue