mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
LoadLocal splat fix
This commit is contained in:
parent
1806cb923b
commit
56af3bb376
1 changed files with 1 additions and 3 deletions
|
@ -4143,9 +4143,7 @@ BfTypedValue BfExprEvaluator::LoadLocal(BfLocalVariable* varDecl, bool allowRef)
|
||||||
}
|
}
|
||||||
else if (varDecl->mIsSplat)
|
else if (varDecl->mIsSplat)
|
||||||
{
|
{
|
||||||
if ((!preferValue) && (varDecl->mAddr))
|
if (!varDecl->mResolvedType->IsValuelessType())
|
||||||
localResult = BfTypedValue(varDecl->mAddr, varDecl->mResolvedType, BfTypedValueKind_SplatHead);
|
|
||||||
else if (!varDecl->mResolvedType->IsValuelessType())
|
|
||||||
localResult = BfTypedValue(varDecl->mValue, varDecl->mResolvedType, BfTypedValueKind_SplatHead);
|
localResult = BfTypedValue(varDecl->mValue, varDecl->mResolvedType, BfTypedValueKind_SplatHead);
|
||||||
else if ((varDecl->mResolvedType->IsRef()) && (!allowRef))
|
else if ((varDecl->mResolvedType->IsRef()) && (!allowRef))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue