mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fix for valueluess mixin arguments
This commit is contained in:
parent
678bdc0ba6
commit
f723ce1e39
1 changed files with 16 additions and 14 deletions
|
@ -17705,8 +17705,9 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
|
||||||
|
|
||||||
BfType* allocType = localVal.mType;
|
BfType* allocType = localVal.mType;
|
||||||
|
|
||||||
|
if (!allocType->IsValuelessType())
|
||||||
|
{
|
||||||
auto allocaVal = mModule->CreateAlloca(allocType);
|
auto allocaVal = mModule->CreateAlloca(allocType);
|
||||||
|
|
||||||
mModule->mBfIRBuilder->CreateStore(localVal.mValue, allocaVal);
|
mModule->mBfIRBuilder->CreateStore(localVal.mValue, allocaVal);
|
||||||
|
|
||||||
if (!mModule->mBfIRBuilder->mIgnoreWrites)
|
if (!mModule->mBfIRBuilder->mIgnoreWrites)
|
||||||
|
@ -17725,6 +17726,7 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
newLocalVar->mParamIdx = -3;
|
newLocalVar->mParamIdx = -3;
|
||||||
mixinState->mArgTypes.Add(newLocalVar->mResolvedType);
|
mixinState->mArgTypes.Add(newLocalVar->mResolvedType);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue