1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed a splat-to-addr bug with methodRef captures

This commit is contained in:
Brian Fiete 2021-12-27 15:26:20 -05:00
parent 87ab0ad169
commit e81c0d6dfa
2 changed files with 35 additions and 0 deletions

View file

@ -7116,7 +7116,11 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
if (methodRefType->WantsDataPassedAsSplat(dataIdx))
SplatArgs(lookupVal, irArgs);
else
{
if (lookupVal.mType->IsComposite())
lookupVal = mModule->MakeAddressable(lookupVal, false);
irArgs.push_back(lookupVal.mValue);
}
}
}